码迷,mamicode.com
首页 > Web开发 > 详细

基于jQuery环形图标菜单旋转切换特效

时间:2015-05-14 15:53:03      阅读:118      评论:0      收藏:0      [点我收藏+]

标签:

分享一款基于jQuery环形图标旋转切换特效。这是一款鼠标点击图标菜单圆形顺时针或者逆时针旋转切换代码。效果图如下:

技术分享

在线预览   源码下载

实现的代码。

js代码:

/* 图片地址可以是相对路径或绝对路径;标题和描述可以包含HTML */
var settings = [ {image: ‘images/zzsc1.png‘, heading: ‘爱编程‘, description: ‘www.w2bc.com‘},
                { image: ‘images/zzsc2.png‘, heading: ‘爱编程‘, description: ‘www.w2bc.com‘ },
                { image: ‘images/zzsc3.png‘, heading: ‘爱编程‘, description: ‘www.w2bc.com‘ },
                { image: ‘images/zzsc4.png‘, heading: ‘爱编程‘, description: ‘www.w2bc.com‘ },
                { image: ‘images/zzsc5.png‘, heading: ‘爱编程‘, description: ‘www.w2bc.com‘ },
                { image: ‘images/zzsc6.png‘, heading: ‘爱编程‘, description: ‘www.w2bc.com‘ }
                ];

var options = {
    circle_radius: 220,
    normal_feature_size: 100,
    highlighted_feature_size: 150,
    top_margin: 100,
    bottom_margin: 50,
    spacing: 40,
    min_padding: 50,
    heading_font_size: 30,
    description_font_size: 20,
    type: ‘image‘
};

var fp = new FeaturePresenter($("#test-element"), settings, options);
fp.createPresenter();

via:http://www.w2bc.com/Article/37857

基于jQuery环形图标菜单旋转切换特效

标签:

原文地址:http://www.cnblogs.com/liaohuolin/p/4503139.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!