jquery - Highcharts 标题动画

标签 jquery html css twitter-bootstrap highcharts

我正在尝试申请 Circulate framework effects在 highcharts title 上。这是我尝试过但似乎不起作用的方法:

$('#myCarousel').bind('slid', function () {
    $(".highcharts-title text").each(function() {
        $(this).circulate({
            speed: Math.floor(Math.random()*300) + 100,
            height: Math.floor(Math.random()*1000) - 470,
            width: Math.floor(Math.random()*1000) - 470
        });
    });
});

enter image description here

最佳答案

您可以将其设置为呈现为 HTML。 只需添加 useHTML 代码中的属性:

title: {
    useHTML: true,
    text: 'Marketers, on average, spend over a quarter of their marketing budget on content marketing.'
    },

然后你可以应用动画:

$("span.highcharts-title").circulate({
                speed: Math.floor(Math.random()*300) + 100,
                height: Math.floor(Math.random()*1000) - 470,
                width: Math.floor(Math.random()*1000) - 470
            })

关于jquery - Highcharts 标题动画,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23317548/

相关文章:

JavaScript 拒绝获取 "select"元素的选定值

html - 45 度 Angular + 方框阴影 - 仅使用 CSS

jquery - Bootstrap 3.0.2 默认不设置表单样式

html - 如何使用 XPath 选择元素及其子元素中的所有文本

css - Logo 未显示在标题 img 顶部

php - 从短代码中删除超链接

javascript - 更改 innerHTML onmousemove 事件

javascript - 获取 HTML 5 音频控制文件位置并更新 src,而不使用 id 选择器

javascript - jQuery 无法从 $(this) 按钮单击获取 id

c# - 如何使用 ASP.NET 从代码后面添加额外的 css 类?