#212121
1.container { 2 width: 307px; 3 height: 50px; 4} 5 6.content { 7 display: block; 8 position: sticky; 9 overflow: hidden; 10 font-family: 'Lato', sans-serif; 11 font-size: 35px; 12 line-height: 40px; 13 color: #ecf0f1; 14} 15 16.content__container { 17 font-weight: 600; 18 overflow: hidden; 19 height: 40px; 20 padding: 0 40px; 21} 22 23.content__container:before { 24 content: '['; 25 left: 0; 26} 27 28.content__container:after { 29 content: ']'; 30 position: absolute; 31 right: 0; 32} 33 34.content__container:after, .content__container:before { 35 position: absolute; 36 top: -2px; 37 color: #16a085; 38 font-size: 42px; 39 line-height: 40px; 40 -webkit-animation-name: opacity; 41 -webkit-animation-duration: 2s; 42 -webkit-animation-iteration-count: infinite; 43 animation-name: opacity; 44 animation-duration: 2s; 45 animation-iteration-count: infinite; 46} 47 48.content__container__text { 49 display: inline; 50 float: left; 51 margin: 0; 52} 53 54.content__container__list { 55 margin-top: 0; 56 padding-left: 110px; 57 text-align: left; 58 list-style: none; 59 -webkit-animation-name: change; 60 -webkit-animation-duration: 10s; 61 -webkit-animation-iteration-count: infinite; 62 animation-name: change; 63 animation-duration: 10s; 64 animation-iteration-count: infinite; 65} 66 67.content__container__list__item { 68 line-height: 40px; 69 margin: 0; 70} 71 72@keyframes opacity { 73 0%, 100% { 74 opacity: 0; 75 } 76 77 50% { 78 opacity: 1; 79 } 80} 81 82@keyframes change { 83 0%, 12.66%, 100% { 84 transform: translate3d(0, 0, 0); 85 } 86 87 16.66%, 29.32% { 88 transform: translate3d(0, -25%, 0); 89 } 90 91 33.32%, 45.98% { 92 transform: translate3d(0, -50%, 0); 93 } 94 95 49.98%, 62.64% { 96 transform: translate3d(0, -75%, 0); 97 } 98 99 66.64%, 79.3% { 100 transform: translate3d(0, -50%, 0); 101 } 102 103 83.3%, 95.96% { 104 transform: translate3d(0, -25%, 0); 105 } 106} 107
1.6K views
1.6K views
Comments
MIT License