基于jQuery插件实现环形图标菜单旋转切换特效
网络编程 2021-07-04 21:48www.168986.cn编程入门
本文给大家分享一款基于jQuery环形图标旋转切换特效。这是一款鼠标点击图标菜单圆形顺时针或者逆时针旋转切换代码。有需要的小伙伴可以参考下。
feature.presenter.1.5.css
body { margin: 0; font-family: Tahoma; } .feature-presenter { position: absolute; } .feature-presenter-icon { background-color: white; text-align: center; transition: transform 0.7s cubic-bezier(0.445, 0.05, 0.55, 0.95); -webkit-transition: -webkit-transform 0.7s cubic-bezier(0.445, 0.05, 0.55, 0.95); border-radius: 50%; cursor: pointer; } .feature-presenter img { max-width: 100%; transition: transform 0.7s cubic-bezier(0.445, 0.05, 0.55, 0.95); -webkit-transition: -webkit-transform 0.7s cubic-bezier(0.445, 0.05, 0.55, 0.95); border-radius: 50%; cursor: pointer; box-shadow: 0 0 16px rgba(0, 0, 0, 0.1); filter: blur(0px); -webkit-filter: blur(0px); image-rendering: -webkit-optimize-contrast; } .feature-presenter i { font-size: 85px; /filter: url('data:image/svg+xml;utf8,<svg version="1.1" xmlns="http://.w3./2000/svg" xmlns:xlink="http://.w3./1999/xlink"><defs><filter id="gaussian_blur"><feGaussianBlur in="SourceGraphic" stdDeviation="0" /></filter></defs></svg>#gaussian_blur');/ } .feature-presenter-circle-container { border-radius: 50%; display: inline-block; border: 1px solid rgba(0,0,0,0.09); box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.09); transition: transform 0.7s cubic-bezier(0.445, 0.05, 0.55, 0.95); -webkit-transition: -webkit-transform 0.7s cubic-bezier(0.445, 0.05, 0.55, 0.95); background-color: white; } .feature-presenter-text-container { line-height: 1.3; display: inline-block; vertical-align: ; z-index: 1001; position: relative; overflow: hidden; } .feature-presenter-text-heading { -webkit-transition: -webkit-transform 0.4s cubic-bezier(0.075, 0.82, 0.165, 1); transition: transform 0.4s cubic-bezier(0.075, 0.82, 0.165, 1); margin-bottom: 10px; color: rgba(0, 0, 0, 0.8); } .feature-presenter-text-description { -webkit-transition: -webkit-transform 0.4s cubic-bezier(0.075, 0.82, 0.165, 1) 0.4s; transition: transform 0.4s cubic-bezier(0.075, 0.82, 0.165, 1) 0.4s; color: rgba(0, 0, 0, 0.5); } .feature-presenter-text-container-out { -webkit-transform: translate(200%, 0); transform: translate(200%, 0); -webkit-transition: -webkit-transform 0.5s ease-in; transition: transform 0.5s ease-in; }
html:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://.w3./TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://.w3./1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>基于jQuery环形图标菜单旋转切换特效</title> <link href='css/feature.presenter.1.5.css' rel='stylesheet' type='text/css'> <script type="text/javascript" src="js/jquery-2.1.1.min.js"></script> </head> <body> <div id="test-element"></div> <script src="js/feature.presenter.1.5.min.js"></script> <script> / 图片地址可以是相对路径或绝对路径;标题和描述可以包含HTML / var settings = [ {image: 'images/zzsc1.png', heading: '狼蚁SEO', description: '.jb51.'}, { image: 'images/zzsc2.png', heading: '狼蚁SEO', description: '.jb51.' }, { image: 'images/zzsc3.png', heading: '狼蚁SEO', description: '.jb51.' }, { image: 'images/zzsc4.png', heading: '狼蚁SEO', description: '.jb51.' }, { image: 'images/zzsc5.png', heading: '狼蚁SEO', description: '.jb51.' }, { image: 'images/zzsc6.png', heading: '狼蚁SEO', description: '.jb51.' } ]; var options = { circle_radius: 220, normal_feature_size: 100, highlighted_feature_size: 150, _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(); </script> </body> </html>
以上所述就是本文的全部内容了,希望大家能够喜欢。
上一篇:JavaScript实现列表分页功能特效
下一篇:js生成验证码并直接在前端判断
编程语言
- 如何快速学会编程 如何快速学会ug编程
- 免费学编程的app 推荐12个免费学编程的好网站
- 电脑怎么编程:电脑怎么编程网咯游戏菜单图标
- 如何写代码新手教学 如何写代码新手教学手机
- 基础编程入门教程视频 基础编程入门教程视频华
- 编程演示:编程演示浦丰投针过程
- 乐高编程加盟 乐高积木编程加盟
- 跟我学plc编程 plc编程自学入门视频教程
- ug编程成航林总 ug编程实战视频
- 孩子学编程的好处和坏处
- 初学者学编程该从哪里开始 新手学编程从哪里入
- 慢走丝编程 慢走丝编程难学吗
- 国内十强少儿编程机构 中国少儿编程机构十强有
- 成人计算机速成培训班 成人计算机速成培训班办
- 孩子学编程网上课程哪家好 儿童学编程比较好的
- 代码编程教学入门软件 代码编程教程