程序员的知识教程库

网站首页 > 教程分享 正文

利用jQuery圆形转动切换文字说明动画特效代码

henian88 2024-09-06 18:46:49 教程分享 113 ℃ 0 评论

效果图

各位看官大家好!

今天给大家分享的是

jQuery圆形转动切换文字说明动画特效代码!

代码过长需要文档版源码来我的前端群581549454,已上传到群文件

废话不多说上源码

CSS源码:

/*@import url(https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,700);*/

body {

background: #FFB533;

font-size: 100%;

font-family: 'Source Sans Pro', sans-serif;

}

.wrapper {

text-align: center;

padding: 2em;

}

.steps {

margin: 0 auto;

height: 20em;

list-style: none;

width: 20em;

z-index: 0;

position: relative;

color: #fff;

border: 2px solid white;

border-radius: 50%;

}

.steps__icon {

padding-top: 2.5em;

width: 50%;

}

.steps__description {

padding: 0em 4em;

position: absolute;

bottom: 2.5em;

font-size: 0.9em;

}

.steps__description span {

font-weight: bold;

padding-right: 0.3em;

}

.steps__description a {

-moz-transition: all 0.5s ease-in-out;

-o-transition: all 0.5s ease-in-out;

-webkit-transition: all 0.5s ease-in-out;

-ms-transition: all 0.5s ease-in-out;

transition: all 0.5s ease-in-out;

border: 1px solid #373232;

border-radius: 0.2em;

color: #373232;

text-decoration: none;

display: inline-block;

padding: 0.2em 0.5em;

margin-top: 0.6em;

font-size: 0.9em;

}

.steps__description a:hover {

border: 1px solid #fff;

color: #fff;

background: #373232;

}

.is-active a {

font-size: 2em !important;

background: #373232 !important;

}

#steps-menu ul li {

-moz-transition: all 1.2s ease-in-out;

-o-transition: all 1.2s ease-in-out;

-webkit-transition: all 1.2s ease-in-out;

-ms-transition: all 1.2s ease-in-out;

transition: all 1.2s ease-in-out;

border-left: 140px solid transparent;

border-top: 1px solid transparent;

font-size: 0.65em;

left: 50%;

list-style: none;

position: absolute;

top: 50%;

transform-origin: 0 0;

}

#steps-menu ul li:after {

content: " ";

background: url("http://krystalcampioni.com/testes/arrow.png") red;

width: 0.7em;

height: 0.4em;

margin-left: -0.14em;

margin-top: -2.1em;

position: absolute;

font-size: 3.5em;

background-size: 100%;

background-color: transparent;

transform: rotate(-29deg);

background-repeat: no-repeat;

}

#steps-menu ul li a {

-moz-transition: all 0.5s ease-in-out;

-o-transition: all 0.5s ease-in-out;

-webkit-transition: all 0.5s ease-in-out;

-ms-transition: all 0.5s ease-in-out;

transition: all 0.5s ease-in-out;

background: #FFB533;

color: #fff;

text-decoration: none;

position: absolute;

border: 2px solid #fff;

border-radius: 50%;

text-align: center;

height: 2em;

width: 2em;

font-size: 1.6em;

line-height: 2;

box-shadow: 0 0 0 0 transparent;

}

#steps-menu ul li a:hover {

background: #373232;

box-shadow: 0 0 0px 3px #373232;

}

.step-1 ul li:nth-of-type(1) {

transform: rotate(-97deg);

}

.step-1 ul li:nth-of-type(1) a {

transform: rotate(97deg);

}

.step-2 ul li:nth-of-type(1) {

transform: rotate(-157deg);

}

.step-2 ul li:nth-of-type(1) a {

transform: rotate(157deg);

}

.step-3 ul li:nth-of-type(1) {

transform: rotate(-217deg);

}

.step-3 ul li:nth-of-type(1) a {

transform: rotate(217deg);

}

.step-4 ul li:nth-of-type(1) {

transform: rotate(-277deg);

}

.step-4 ul li:nth-of-type(1) a {

transform: rotate(277deg);

}

.step-5 ul li:nth-of-type(1) {

transform: rotate(-337deg);

}

.step-5 ul li:nth-of-type(1) a {

transform: rotate(337deg);

}

.step-6 ul li:nth-of-type(1) {

transform: rotate(-397deg);

}

.step-6 ul li:nth-of-type(1) a {

transform: rotate(397deg);

}

.step-1 ul li:nth-of-type(2) {

transform: rotate(-37deg);

}

.step-1 ul li:nth-of-type(2) a {

transform: rotate(37deg);

}

.step-2 ul li:nth-of-type(2) {

transform: rotate(-97deg);

}

.step-2 ul li:nth-of-type(2) a {

transform: rotate(97deg);

}

.step-3 ul li:nth-of-type(2) {

transform: rotate(-157deg);

}

.step-3 ul li:nth-of-type(2) a {

transform: rotate(157deg);

}

.step-4 ul li:nth-of-type(2) {

transform: rotate(-217deg);

}

.step-4 ul li:nth-of-type(2) a {

transform: rotate(217deg);

}

.step-5 ul li:nth-of-type(2) {

transform: rotate(-277deg);

}

.step-5 ul li:nth-of-type(2) a {

transform: rotate(277deg);

}

.step-6 ul li:nth-of-type(2) {

transform: rotate(-337deg);

}

.step-6 ul li:nth-of-type(2) a {

transform: rotate(337deg);

}

.step-1 ul li:nth-of-type(3) {

transform: rotate(23deg);

}

.step-1 ul li:nth-of-type(3) a {

transform: rotate(-23deg);

}

.step-2 ul li:nth-of-type(3) {

transform: rotate(-37deg);

}

.step-2 ul li:nth-of-type(3) a {

transform: rotate(37deg);

}

.step-3 ul li:nth-of-type(3) {

transform: rotate(-97deg);

}

.step-3 ul li:nth-of-type(3) a {

transform: rotate(97deg);

}

.step-4 ul li:nth-of-type(3) {

transform: rotate(-157deg);

}

.step-4 ul li:nth-of-type(3) a {

transform: rotate(157deg);

}

.step-5 ul li:nth-of-type(3) {

transform: rotate(-217deg);

}

.step-5 ul li:nth-of-type(3) a {

transform: rotate(217deg);

}

.step-6 ul li:nth-of-type(3) {

transform: rotate(-277deg);

}

.step-6 ul li:nth-of-type(3) a {

transform: rotate(277deg);

}

.step-1 ul li:nth-of-type(4) {

transform: rotate(83deg);

}

.step-1 ul li:nth-of-type(4) a {

transform: rotate(-83deg);

}

.step-2 ul li:nth-of-type(4) {

transform: rotate(23deg);

}

.step-2 ul li:nth-of-type(4) a {

transform: rotate(-23deg);

}

.step-3 ul li:nth-of-type(4) {

transform: rotate(-37deg);

}

.step-3 ul li:nth-of-type(4) a {

transform: rotate(37deg);

}

.step-4 ul li:nth-of-type(4) {

transform: rotate(-97deg);

}

.step-4 ul li:nth-of-type(4) a {

transform: rotate(97deg);

}

.step-5 ul li:nth-of-type(4) {

transform: rotate(-157deg);

}

.step-5 ul li:nth-of-type(4) a {

transform: rotate(157deg);

}

.step-6 ul li:nth-of-type(4) {

transform: rotate(-217deg);

}

.step-6 ul li:nth-of-type(4) a {

transform: rotate(217deg);

}

.step-1 ul li:nth-of-type(5) {

transform: rotate(143deg);

}

.step-1 ul li:nth-of-type(5) a {

transform: rotate(-143deg);

}

.step-2 ul li:nth-of-type(5) {

transform: rotate(83deg);

}

.step-2 ul li:nth-of-type(5) a {

transform: rotate(-83deg);

}

.step-3 ul li:nth-of-type(5) {

transform: rotate(23deg);

}

.step-3 ul li:nth-of-type(5) a {

transform: rotate(-23deg);

}

.step-4 ul li:nth-of-type(5) {

transform: rotate(-37deg);

}

.step-4 ul li:nth-of-type(5) a {

transform: rotate(37deg);

}

.step-5 ul li:nth-of-type(5) {

transform: rotate(-97deg);

}

.step-5 ul li:nth-of-type(5) a {

transform: rotate(97deg);

}

.step-6 ul li:nth-of-type(5) {

transform: rotate(-157deg);

}

.step-6 ul li:nth-of-type(5) a {

transform: rotate(157deg);

}

.step-1 ul li:nth-of-type(6) {

transform: rotate(203deg);

}

.step-1 ul li:nth-of-type(6) a {

transform: rotate(-203deg);

}

.step-2 ul li:nth-of-type(6) {

transform: rotate(143deg);

}

.step-2 ul li:nth-of-type(6) a {

transform: rotate(-143deg);

}

.step-3 ul li:nth-of-type(6) {

transform: rotate(83deg);

}

.step-3 ul li:nth-of-type(6) a {

transform: rotate(-83deg);

}

.step-4 ul li:nth-of-type(6) {

transform: rotate(23deg);

}

.step-4 ul li:nth-of-type(6) a {

transform: rotate(-23deg);

}

.step-5 ul li:nth-of-type(6) {

transform: rotate(-37deg);

}

.step-5 ul li:nth-of-type(6) a {

transform: rotate(37deg);

}

.step-6 ul li:nth-of-type(6) {

transform: rotate(-97deg);

}

.step-6 ul li:nth-of-type(6) a {

transform: rotate(97deg);

}

.step-content {

display: none;

}

#step-1 {

display: block;

}

.container {

padding-right: 15px;

padding-left: 15px;

margin-right: auto;

margin-left: auto;

}

@media (min-width: 768px) {

.container {

width: 750px;

}

}

@media (min-width: 992px) {

.container {

width: 970px;

}

}

@media (min-width: 1200px) {

.container {

width: 1170px;

}

}

.container-fluid {

padding-right: 15px;

padding-left: 15px;

margin-right: auto;

margin-left: auto;

}

.row {

margin-right: -15px;

margin-left: -15px;

}

.col-xs-1, .col-sm-1, .col-md-1, .col-lg-1, .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2, .col-xs-3, .col-sm-3, .col-md-3, .col-lg-3, .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4, .col-xs-5, .col-sm-5, .col-md-5, .col-lg-5, .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6, .col-xs-7, .col-sm-7, .col-md-7, .col-lg-7, .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8, .col-xs-9, .col-sm-9, .col-md-9, .col-lg-9, .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10, .col-xs-11, .col-sm-11, .col-md-11, .col-lg-11, .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 {

position: relative;

min-height: 1px;

padding-right: 15px;

padding-left: 15px;

}

.col-xs-1, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6, .col-xs-7, .col-xs-8, .col-xs-9, .col-xs-10, .col-xs-11, .col-xs-12 {

float: left;

}

.col-xs-12 {

width: 100%;

}

.col-xs-11 {

width: 91.66666667%;

}

.col-xs-10 {

width: 83.33333333%;

}

.col-xs-9 {

width: 75%;

}

.col-xs-8 {

width: 66.66666667%;

}

.col-xs-7 {

width: 58.33333333%;

}

.col-xs-6 {

width: 50%;

}

.col-xs-5 {

width: 41.66666667%;

}

.col-xs-4 {

width: 33.33333333%;

}

.col-xs-3 {

width: 25%;

}

.col-xs-2 {

width: 16.66666667%;

}

.col-xs-1 {

width: 8.33333333%;

}

.col-xs-pull-12 {

right: 100%;

}

.col-xs-pull-11 {

right: 91.66666667%;

}

.col-xs-pull-10 {

right: 83.33333333%;

}

.col-xs-pull-9 {

right: 75%;

}

.col-xs-pull-8 {

right: 66.66666667%;

}

.col-xs-pull-7 {

right: 58.33333333%;

}

.col-xs-pull-6 {

right: 50%;

}

.col-xs-pull-5 {

right: 41.66666667%;

}

.col-xs-pull-4 {

right: 33.33333333%;

}

.col-xs-pull-3 {

right: 25%;

}

.col-xs-pull-2 {

right: 16.66666667%;

}

.col-xs-pull-1 {

right: 8.33333333%;

}

.col-xs-pull-0 {

right: auto;

}

.col-xs-push-12 {

left: 100%;

}

.col-xs-push-11 {

left: 91.66666667%;

}

.col-xs-push-10 {

left: 83.33333333%;

}

.col-xs-push-9 {

left: 75%;

}

.col-xs-push-8 {

left: 66.66666667%;

}

.col-xs-push-7 {

left: 58.33333333%;

}

.col-xs-push-6 {

left: 50%;

}

.col-xs-push-5 {

left: 41.66666667%;

}

.col-xs-push-4 {

left: 33.33333333%;

}

.col-xs-push-3 {

left: 25%;

}

.col-xs-push-2 {

left: 16.66666667%;

}

.col-xs-push-1 {

left: 8.33333333%;

}

.col-xs-push-0 {

left: auto;

}

.col-xs-offset-12 {

margin-left: 100%;

}

.col-xs-offset-11 {

margin-left: 91.66666667%;

}

.col-xs-offset-10 {

margin-left: 83.33333333%;

}

.col-xs-offset-9 {

margin-left: 75%;

}

.col-xs-offset-8 {

margin-left: 66.66666667%;

}

.col-xs-offset-7 {

margin-left: 58.33333333%;

}

.col-xs-offset-6 {

margin-left: 50%;

}

.col-xs-offset-5 {

margin-left: 41.66666667%;

}

.col-xs-offset-4 {

margin-left: 33.33333333%;

}

.col-xs-offset-3 {

margin-left: 25%;

}

.col-xs-offset-2 {

margin-left: 16.66666667%;

}

.col-xs-offset-1 {

margin-left: 8.33333333%;

}

.col-xs-offset-0 {

margin-left: 0;

}

@media (min-width: 768px) {

.col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12 {

float: left;

}

.col-sm-12 {

width: 100%;

}

.col-sm-11 {

width: 91.66666667%;

}

.col-sm-10 {

width: 83.33333333%;

}

.col-sm-9 {

width: 75%;

}

.col-sm-8 {

width: 66.66666667%;

}

.col-sm-7 {

width: 58.33333333%;

}

.col-sm-6 {

width: 50%;

}

.col-sm-5 {

width: 41.66666667%;

}

.col-sm-4 {

width: 33.33333333%;

}

.col-sm-3 {

width: 25%;

}

.col-sm-2 {

width: 16.66666667%;

}

.col-sm-1 {

width: 8.33333333%;

}

.col-sm-pull-12 {

right: 100%;

}

.col-sm-pull-11 {

right: 91.66666667%;

}

.col-sm-pull-10 {

right: 83.33333333%;

}

.col-sm-pull-9 {

right: 75%;

}

.col-sm-pull-8 {

right: 66.66666667%;

}

.col-sm-pull-7 {

right: 58.33333333%;

}

.col-sm-pull-6 {

right: 50%;

}

.col-sm-pull-5 {

right: 41.66666667%;

}

.col-sm-pull-4 {

right: 33.33333333%;

}

.col-sm-pull-3 {

right: 25%;

}

.col-sm-pull-2 {

right: 16.66666667%;

}

.col-sm-pull-1 {

right: 8.33333333%;

}

.col-sm-pull-0 {

right: auto;

}

.col-sm-push-12 {

left: 100%;

}

.col-sm-push-11 {

left: 91.66666667%;

}

.col-sm-push-10 {

left: 83.33333333%;

}

.col-sm-push-9 {

left: 75%;

}

.col-sm-push-8 {

left: 66.66666667%;

}

.col-sm-push-7 {

left: 58.33333333%;

}

.col-sm-push-6 {

left: 50%;

}

.col-sm-push-5 {

left: 41.66666667%;

}

.col-sm-push-4 {

left: 33.33333333%;

}

.col-sm-push-3 {

left: 25%;

}

.col-sm-push-2 {

left: 16.66666667%;

}

.col-sm-push-1 {

left: 8.33333333%;

}

.col-sm-push-0 {

left: auto;

}

.col-sm-offset-12 {

margin-left: 100%;

}

.col-sm-offset-11 {

margin-left: 91.66666667%;

}

.col-sm-offset-10 {

margin-left: 83.33333333%;

}

.col-sm-offset-9 {

margin-left: 75%;

}

.col-sm-offset-8 {

margin-left: 66.66666667%;

}

.col-sm-offset-7 {

margin-left: 58.33333333%;

}

.col-sm-offset-6 {

margin-left: 50%;

}

.col-sm-offset-5 {

margin-left: 41.66666667%;

}

.col-sm-offset-4 {

margin-left: 33.33333333%;

}

.col-sm-offset-3 {

margin-left: 25%;

}

.col-sm-offset-2 {

margin-left: 16.66666667%;

}

.col-sm-offset-1 {

margin-left: 8.33333333%;

}

.col-sm-offset-0 {

margin-left: 0;

}

}

@media (min-width: 992px) {

.col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12 {

float: left;

}

.col-md-12 {

width: 100%;

}

.col-md-11 {

width: 91.66666667%;

}

.col-md-10 {

width: 83.33333333%;

}

.col-md-9 {

width: 75%;

}

.col-md-8 {

width: 66.66666667%;

}

.col-md-7 {

width: 58.33333333%;

}

.col-md-6 {

width: 50%;

}

.col-md-5 {

width: 41.66666667%;

}

.col-md-4 {

width: 33.33333333%;

}

.col-md-3 {

width: 25%;

}

.col-md-2 {

width: 16.66666667%;

}

.col-md-1 {

width: 8.33333333%;

}

.col-md-pull-12 {

right: 100%;

}

.col-md-pull-11 {

right: 91.66666667%;

}

.col-md-pull-10 {

right: 83.33333333%;

}

.col-md-pull-9 {

right: 75%;

}

.col-md-pull-8 {

right: 66.66666667%;

}

.col-md-pull-7 {

right: 58.33333333%;

}

.col-md-pull-6 {

right: 50%;

}

.col-md-pull-5 {

right: 41.66666667%;

}

.col-md-pull-4 {

right: 33.33333333%;

}

.col-md-pull-3 {

right: 25%;

}

.col-md-pull-2 {

right: 16.66666667%;

}

.col-md-pull-1 {

right: 8.33333333%;

}

.col-md-pull-0 {

right: auto;

}

.col-md-push-12 {

left: 100%;

}

.col-md-push-11 {

left: 91.66666667%;

}

.col-md-push-10 {

left: 83.33333333%;

}

.col-md-push-9 {

left: 75%;

}

.col-md-push-8 {

left: 66.66666667%;

}

.col-md-push-7 {

left: 58.33333333%;

}

.col-md-push-6 {

left: 50%;

}

.col-md-push-5 {

left: 41.66666667%;

}

.col-md-push-4 {

left: 33.33333333%;

}

.col-md-push-3 {

left: 25%;

}

.col-md-push-2 {

left: 16.66666667%;

}

.col-md-push-1 {

left: 8.33333333%;

}

.col-md-push-0 {

left: auto;

}

.col-md-offset-12 {

margin-left: 100%;

}

.col-md-offset-11 {

margin-left: 91.66666667%;

}

.col-md-offset-10 {

margin-left: 83.33333333%;

}

.col-md-offset-9 {

margin-left: 75%;

}

.col-md-offset-8 {

margin-left: 66.66666667%;

}

.col-md-offset-7 {

margin-left: 58.33333333%;

}

.col-md-offset-6 {

margin-left: 50%;

}

.col-md-offset-5 {

margin-left: 41.66666667%;

}

.col-md-offset-4 {

margin-left: 33.33333333%;

}

.col-md-offset-3 {

margin-left: 25%;

}

.col-md-offset-2 {

margin-left: 16.66666667%;

}

.col-md-offset-1 {

margin-left: 8.33333333%;

}

.col-md-offset-0 {

margin-left: 0;

}

}

@media (min-width: 1200px) {

.col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 {

float: left;

}

.col-lg-12 {

width: 100%;

}

.col-lg-11 {

width: 91.66666667%;

}

.col-lg-10 {

width: 83.33333333%;

}

.col-lg-9 {

width: 75%;

}

.col-lg-8 {

width: 66.66666667%;

}

.col-lg-7 {

width: 58.33333333%;

}

.col-lg-6 {

width: 50%;

}

.col-lg-5 {

width: 41.66666667%;

}

.col-lg-4 {

width: 33.33333333%;

}

.col-lg-3 {

width: 25%;

}

.col-lg-2 {

width: 16.66666667%;

}

.col-lg-1 {

width: 8.33333333%;

}

.col-lg-pull-12 {

right: 100%;

}

.col-lg-pull-11 {

right: 91.66666667%;

}

.col-lg-pull-10 {

right: 83.33333333%;

}

.col-lg-pull-9 {

right: 75%;

}

.col-lg-pull-8 {

right: 66.66666667%;

}

.col-lg-pull-7 {

right: 58.33333333%;

}

.col-lg-pull-6 {

right: 50%;

}

.col-lg-pull-5 {

right: 41.66666667%;

}

.col-lg-pull-4 {

right: 33.33333333%;

}

.col-lg-pull-3 {

right: 25%;

}

.col-lg-pull-2 {

right: 16.66666667%;

}

.col-lg-pull-1 {

right: 8.33333333%;

}

.col-lg-pull-0 {

right: auto;

}

.col-lg-push-12 {

left: 100%;

}

.col-lg-push-11 {

left: 91.66666667%;

}

.col-lg-push-10 {

left: 83.33333333%;

}

.col-lg-push-9 {

left: 75%;

}

.col-lg-push-8 {

left: 66.66666667%;

}

.col-lg-push-7 {

left: 58.33333333%;

}

.col-lg-push-6 {

left: 50%;

}

.col-lg-push-5 {

left: 41.66666667%;

}

.col-lg-push-4 {

left: 33.33333333%;

}

.col-lg-push-3 {

left: 25%;

}

.col-lg-push-2 {

left: 16.66666667%;

}

.col-lg-push-1 {

left: 8.33333333%;

}

.col-lg-push-0 {

left: auto;

}

.col-lg-offset-12 {

margin-left: 100%;

}

.col-lg-offset-11 {

margin-left: 91.66666667%;

}

.col-lg-offset-10 {

margin-left: 83.33333333%;

}

.col-lg-offset-9 {

margin-left: 75%;

}

.col-lg-offset-8 {

margin-left: 66.66666667%;

}

.col-lg-offset-7 {

margin-left: 58.33333333%;

}

.col-lg-offset-6 {

margin-left: 50%;

}

.col-lg-offset-5 {

margin-left: 41.66666667%;

}

.col-lg-offset-4 {

margin-left: 33.33333333%;

}

.col-lg-offset-3 {

margin-left: 25%;

}

.col-lg-offset-2 {

margin-left: 16.66666667%;

}

.col-lg-offset-1 {

margin-left: 8.33333333%;

}

.col-lg-offset-0 {

margin-left: 0;

}

}

Tags:

本文暂时没有评论,来添加一个吧(●'◡'●)

欢迎 发表评论:

最近发表
标签列表