animation.css 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909
  1. /*
  2. Animation 微动画
  3. 基于ColorUI组建库的动画模块 by 文晓港 2019年3月26日19:52:28
  4. */
  5. /* css 滤镜 控制黑白底色gif的 */
  6. .gif-black{
  7. mix-blend-mode: screen;
  8. }
  9. .gif-white{
  10. mix-blend-mode: multiply;
  11. }
  12. /* Animation css */
  13. [class*=animation-] {
  14. animation-duration: .5s;
  15. animation-timing-function: ease-out;
  16. animation-fill-mode: both
  17. }
  18. .animation-fade {
  19. animation-name: fade;
  20. animation-duration: .8s;
  21. animation-timing-function: linear
  22. }
  23. .animation-scale-up {
  24. animation-name: scale-up
  25. }
  26. .animation-scale-down {
  27. animation-name: scale-down
  28. }
  29. .animation-slide-top {
  30. animation-name: slide-top
  31. }
  32. .animation-slide-bottom {
  33. animation-name: slide-bottom
  34. }
  35. .animation-slide-left {
  36. animation-name: slide-left
  37. }
  38. .animation-slide-right {
  39. animation-name: slide-right
  40. }
  41. .animation-shake {
  42. animation-name: shake
  43. }
  44. .animation-reverse {
  45. animation-direction: reverse
  46. }
  47. @keyframes fade {
  48. 0% {
  49. opacity: 0
  50. }
  51. 100% {
  52. opacity: 1
  53. }
  54. }
  55. @keyframes scale-up {
  56. 0% {
  57. opacity: 0;
  58. transform: scale(.2)
  59. }
  60. 100% {
  61. opacity: 1;
  62. transform: scale(1)
  63. }
  64. }
  65. @keyframes scale-down {
  66. 0% {
  67. opacity: 0;
  68. transform: scale(1.8)
  69. }
  70. 100% {
  71. opacity: 1;
  72. transform: scale(1)
  73. }
  74. }
  75. @keyframes slide-top {
  76. 0% {
  77. opacity: 0;
  78. transform: translateY(-100%)
  79. }
  80. 100% {
  81. opacity: 1;
  82. transform: translateY(0)
  83. }
  84. }
  85. @keyframes slide-bottom {
  86. 0% {
  87. opacity: 0;
  88. transform: translateY(100%)
  89. }
  90. 100% {
  91. opacity: 1;
  92. transform: translateY(0)
  93. }
  94. }
  95. @keyframes shake {
  96. 0%,
  97. 100% {
  98. transform: translateX(0)
  99. }
  100. 10% {
  101. transform: translateX(-9px)
  102. }
  103. 20% {
  104. transform: translateX(8px)
  105. }
  106. 30% {
  107. transform: translateX(-7px)
  108. }
  109. 40% {
  110. transform: translateX(6px)
  111. }
  112. 50% {
  113. transform: translateX(-5px)
  114. }
  115. 60% {
  116. transform: translateX(4px)
  117. }
  118. 70% {
  119. transform: translateX(-3px)
  120. }
  121. 80% {
  122. transform: translateX(2px)
  123. }
  124. 90% {
  125. transform: translateX(-1px)
  126. }
  127. }
  128. @keyframes slide-left {
  129. 0% {
  130. opacity: 0;
  131. transform: translateX(-100%)
  132. }
  133. 100% {
  134. opacity: 1;
  135. transform: translateX(0)
  136. }
  137. }
  138. @keyframes slide-right {
  139. 0% {
  140. opacity: 0;
  141. transform: translateX(100%)
  142. }
  143. 100% {
  144. opacity: 1;
  145. transform: translateX(0)
  146. }
  147. }
  148. /*
  149. 在App.vue全局引入common文件夹下的ycCss.css
  150. 为你想要效果的view添加class || hover-class
  151. 插件地址: https://ext.dcloud.net.cn/plugin?id=1973
  152. */
  153. .bubble {
  154. width: 60rpx;
  155. height: 60rpx;
  156. border-radius: 50%;
  157. background-color: #007AFF;
  158. color: white;
  159. text-align: center;
  160. line-height: 60rpx;
  161. }
  162. .ycHide {
  163. background: linear-gradient(270deg, var(--btnColor), var(--btnColor), var(--bgColor), var(--bgColor));
  164. background-size: 300% 300%;
  165. background-position: 99% 50%;
  166. --bgColor: white;
  167. --btnColor: #1AAD19;
  168. color: var(--bgColor);
  169. animation: ycHide 1s var(--count) ease both;
  170. --count: infinite;
  171. }
  172. @keyframes ycHide {
  173. 0% {
  174. background-position: 99% 50%;
  175. }
  176. 100% {
  177. background-position: 1% 50%;
  178. }
  179. }
  180. @keyframes ycCart {
  181. 7% {
  182. transform: scale(1, 1);
  183. }
  184. 10% {
  185. transform: scale(1, 0.8);
  186. }
  187. 13% {
  188. transform: scale(1, 1);
  189. }
  190. 37% {
  191. transform: scale(1, 1);
  192. }
  193. 40% {
  194. transform: scale(1, 0.8);
  195. }
  196. 43% {
  197. transform: scale(1, 1);
  198. }
  199. }
  200. .ycCart {
  201. transform-origin: bottom;
  202. width: 30rpx;
  203. height: 30rpx;
  204. position: relative;
  205. animation: ycCart 3s infinite ease;
  206. }
  207. @keyframes ycDrop {
  208. 0% {
  209. top: -30%;
  210. border-radius: 50%;
  211. background-color: #fff;
  212. }
  213. 3% {
  214. top: 0;
  215. border-radius: 50%;
  216. background-color: #fff;
  217. }
  218. 6% {
  219. top: 30%;
  220. height: 5rpx;
  221. border-radius: 10rpx 10rpx 5rpx 5rpx;
  222. transform: scaleX(1.7);
  223. }
  224. 15% {
  225. top: 10%;
  226. height: 10rpx;
  227. border-radius: 50%;
  228. transform: scaleX(1);
  229. }
  230. 30% {
  231. top: 40%;
  232. height: 10rpx;
  233. opacity: 1;
  234. border-radius: 50%;
  235. transform: scaleX(1);
  236. background-color: #fff;
  237. }
  238. 31% {
  239. opacity: 0;
  240. }
  241. 33% {
  242. top: -30%;
  243. opacity: 0;
  244. }
  245. 34% {
  246. border-radius: 0;
  247. background-color: #1C9FFF;
  248. box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(28, 159, 255, 0.4);
  249. opacity: 1;
  250. top: -30%;
  251. }
  252. 40% {
  253. top: 30%;
  254. transform-origin: center bottom;
  255. transform: scaleX(0.8) scaleY(1.4);
  256. }
  257. 49% {
  258. top: 10%;
  259. transform-origin: center bottom;
  260. transform: scaleX(1.3) scaleY(0.7);
  261. }
  262. 64% {
  263. top: 40%;
  264. opacity: 1;
  265. transform-origin: center top;
  266. transform: scaleX(1) scaleY(1);
  267. }
  268. 67% {
  269. opacity: 0;
  270. }
  271. 100% {
  272. opacity: 0;
  273. }
  274. }
  275. .ycDrop {
  276. width: 10rpx;
  277. height: 10rpx;
  278. position: absolute;
  279. -webkit-backface-visibility: hidden;
  280. -webkit-transform-style: preserve-3d;
  281. left: 0;
  282. right: 0;
  283. margin: 0 auto;
  284. transform-origin: 50%;
  285. animation: ycDrop 3s infinite ease;
  286. }
  287. @keyframes ycHeightSec {
  288. 100% {
  289. background-position: right -40px top 0px;
  290. }
  291. }
  292. .ycHeightSec {
  293. position: relative;
  294. overflow: hidden;
  295. }
  296. .ycHeightSec::before {
  297. content: '';
  298. position: absolute;
  299. width: 100%;
  300. height: 100%;
  301. left: 0;
  302. right: 0;
  303. top: 0;
  304. bottom: 0;
  305. margin: auto;
  306. background-image: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
  307. background-size: 40px 100%;
  308. background-repeat: no-repeat;
  309. background-position: left -40px top 0;
  310. animation: ycHeightSec 1s ease infinite;
  311. }
  312. .ycHeight {
  313. position: relative;
  314. overflow: hidden;
  315. }
  316. .ycHeight::before {
  317. content: '';
  318. position: absolute;
  319. background-image: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
  320. width: 140%;
  321. height: 80rpx;
  322. left: 140%;
  323. top: 0;
  324. bottom: 0;
  325. margin: auto;
  326. transform: rotateZ(-45deg);
  327. animation: isLeft 5s 2.3s infinite;
  328. }
  329. @keyframes isLeft {
  330. 0% {
  331. left: -140%;
  332. }
  333. 12% {
  334. left: 140%;
  335. }
  336. 100% {
  337. left: 140%;
  338. }
  339. }
  340. /*
  341. <view wx:for="{{3}}" style="animation-delay:{{index+'s'}}" class="ycChevron" key="{{index}}" ></view>
  342. */
  343. .ycChevron {
  344. position: absolute;
  345. width: 14px;
  346. height: 4px;
  347. opacity: 0;
  348. transform: scale3d(0.5, 0.5, 0.5);
  349. animation: move 3s ease-out infinite;
  350. }
  351. .ycChevron:before,
  352. .ycChevron:after {
  353. content: ' ';
  354. position: absolute;
  355. top: 0;
  356. margin: auto;
  357. height: 100%;
  358. width: 51%;
  359. background: #fff;
  360. }
  361. .ycChevron:before {
  362. left: 0;
  363. transform: skew(0deg, 30deg);
  364. }
  365. .ycChevron:after {
  366. right: 0;
  367. width: 50%;
  368. transform: skew(0deg, -30deg);
  369. }
  370. @keyframes move {
  371. 25% {
  372. opacity: 1;
  373. }
  374. 33% {
  375. opacity: 1;
  376. transform: translateY(30px);
  377. }
  378. 67% {
  379. opacity: 1;
  380. transform: translateY(40px);
  381. }
  382. 100% {
  383. opacity: 0;
  384. transform: translateY(55px) scale3d(0.5, 0.5, 0.5);
  385. }
  386. }
  387. @keyframes shockwave {
  388. 0% {
  389. -webkit-transform: scale(1);
  390. transform: scale(1);
  391. box-shadow: 0 0 2px var(--color), inset 0 0 1px var(--color);
  392. opacity: 1;
  393. }
  394. 95% {
  395. box-shadow: 0 0 50px var(--color), inset 0 0 30px var(--color);
  396. opacity: 0;
  397. }
  398. 100% {
  399. -webkit-transform: scale(2.25);
  400. transform: scale(2.25);
  401. opacity: 0;
  402. }
  403. }
  404. .ycHot {
  405. position: relative;
  406. --color: rgba(0, 0, 0, 0.15);
  407. }
  408. .ycHot::before {
  409. content: '';
  410. position: absolute;
  411. top: 0;
  412. left: 0;
  413. bottom: 0;
  414. right: 0;
  415. border-radius: 50%;
  416. animation: shockwave 3s 0.5s ease-out infinite;
  417. }
  418. .ycHot::after {
  419. content: '';
  420. position: absolute;
  421. top: 0;
  422. left: 0;
  423. bottom: 0;
  424. right: 0;
  425. border-radius: 50%;
  426. animation: shockwave 3s 0.65s ease-out infinite;
  427. }
  428. @keyframes ycHover1 {
  429. 0% {
  430. transform: scale(1);
  431. }
  432. 50% {
  433. transform: scale(0.9);
  434. }
  435. 100% {
  436. transform: scale(1);
  437. }
  438. }
  439. .ycHover1 {
  440. --count: infinite;
  441. animation: ycHover1 .3s var(--count) !important;
  442. }
  443. .ycShake {
  444. transform-origin: center bottom;
  445. animation: ycShake 2s 0.5s ease-out infinite;
  446. }
  447. @keyframes ycShake {
  448. 0% {
  449. transform: rotate(0deg);
  450. transition-timing-function: cubic-bezier(0.215, .61, .355, 1);
  451. }
  452. 10% {
  453. transform: rotate(-12deg);
  454. transition-timing-function: cubic-bezier(0.215, .61, .355, 1);
  455. }
  456. 20% {
  457. transform: rotate(12deg);
  458. transition-timing-function: cubic-bezier(0.215, .61, .355, 1);
  459. }
  460. 28% {
  461. transform: rotate(-10deg);
  462. transition-timing-function: cubic-bezier(0.215, .61, .355, 1);
  463. }
  464. 36% {
  465. transform: rotate(10deg);
  466. transition-timing-function: cubic-bezier(0.755, .5, .855, .06);
  467. }
  468. 42% {
  469. transform: rotate(-8deg);
  470. transition-timing-function: cubic-bezier(0.755, .5, .855, .06);
  471. }
  472. 48% {
  473. transform: rotate(8deg);
  474. transition-timing-function: cubic-bezier(0.755, .5, .855, .06);
  475. }
  476. 52% {
  477. transform: rotate(-4deg);
  478. transition-timing-function: cubic-bezier(0.755, .5, .855, .06);
  479. }
  480. 56% {
  481. transform: rotate(4deg);
  482. transition-timing-function: cubic-bezier(0.755, .5, .855, .06);
  483. }
  484. 60% {
  485. transform: rotate(0deg);
  486. transition-timing-function: cubic-bezier(0.755, .5, .855, .06);
  487. }
  488. 100% {
  489. transform: rotate(0deg);
  490. transition-timing-function: cubic-bezier(0.215, .61, .355, 1);
  491. }
  492. }
  493. .ycHover2 {
  494. z-index: 999;
  495. position: relative;
  496. --color: #ff0081;
  497. --count: infinite;
  498. }
  499. .ycHover2::before,
  500. .ycHover2::after {
  501. position: absolute;
  502. content: '';
  503. display: block;
  504. width: 140%;
  505. height: 100%;
  506. left: -20%;
  507. z-index: -1000;
  508. transition: all ease-in-out 0.5s;
  509. background-repeat: no-repeat;
  510. }
  511. .ycHover2::before {
  512. top: -55%;
  513. background-image: radial-gradient(circle, var(--color) 20%, transparent 20%), radial-gradient(circle, transparent 20%, var(--color) 20%, transparent 30%), radial-gradient(circle, var(--color) 20%, transparent 20%), radial-gradient(circle, var(--color) 20%, transparent 20%), radial-gradient(circle, transparent 10%, var(--color) 15%, transparent 20%), radial-gradient(circle, var(--color) 20%, transparent 20%), radial-gradient(circle, var(--color) 20%, transparent 20%), radial-gradient(circle, var(--color) 20%, transparent 20%), radial-gradient(circle, var(--color) 20%, transparent 20%);
  514. background-size: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
  515. animation: topBubbles ease-in-out 0.75s var(--count);
  516. display: block;
  517. }
  518. .ycHover2::after {
  519. bottom: -55%;
  520. background-image: radial-gradient(circle, var(--color) 20%, transparent 20%), radial-gradient(circle, var(--color) 20%, transparent 20%), radial-gradient(circle, transparent 10%, var(--color) 15%, transparent 20%), radial-gradient(circle, var(--color) 20%, transparent 20%), radial-gradient(circle, var(--color) 20%, transparent 20%), radial-gradient(circle, var(--color) 20%, transparent 20%), radial-gradient(circle, var(--color) 20%, transparent 20%);
  521. background-size: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
  522. display: block;
  523. animation: bottomBubbles ease-in-out 0.75s var(--count);
  524. }
  525. @keyframes topBubbles {
  526. 0% {
  527. background-position: 5% 90%, 10% 90%, 10% 90%, 15% 90%, 25% 90%, 25% 90%, 40% 90%, 55% 90%, 70% 90%;
  528. background-size: 10% 10%, 20% 20%, 15% 15%, 20% 20%, 18% 18%, 10% 10%, 15% 15%, 10% 10%, 18% 18%;
  529. }
  530. 50% {
  531. background-position: 0% 80%, 0% 20%, 10% 40%, 20% 0%, 30% 30%, 22% 50%, 50% 50%, 65% 20%, 90% 30%;
  532. background-size: 10% 10%, 20% 20%, 15% 15%, 20% 20%, 18% 18%, 10% 10%, 15% 15%, 10% 10%, 18% 18%;
  533. }
  534. 100% {
  535. background-position: 0% 70%, 0% 10%, 10% 30%, 20% -10%, 30% 20%, 22% 40%, 50% 40%, 65% 10%, 90% 20%;
  536. background-size: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
  537. }
  538. }
  539. @keyframes bottomBubbles {
  540. 0% {
  541. background-position: 10% -10%, 30% 10%, 55% -10%, 70% -10%, 85% -10%, 70% -10%, 70% 0%;
  542. background-size: 15% 15%, 20% 20%, 18% 18%, 20% 20%, 15% 15%, 10% 10%, 20% 20%;
  543. }
  544. 50% {
  545. background-position: 0% 80%, 20% 80%, 45% 60%, 60% 100%, 75% 70%, 95% 60%, 105% 0%;
  546. background-size: 15% 15%, 20% 20%, 18% 18%, 20% 20%, 15% 15%, 10% 10%, 20% 20%;
  547. }
  548. 100% {
  549. background-position: 0% 90%, 20% 90%, 45% 70%, 60% 110%, 75% 80%, 95% 70%, 110% 10%;
  550. background-size: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
  551. }
  552. }
  553. @keyframes ycHover3 {
  554. 0% {
  555. transform: scale(1, 1);
  556. }
  557. 33% {
  558. transform: scale(1, 1.2);
  559. }
  560. 66% {
  561. transform: scale(1.2, 1);
  562. }
  563. 100% {
  564. transform: scale(1, 1);
  565. }
  566. }
  567. .ycHover3 {
  568. --count: infinite;
  569. animation: ycHover3 .3s var(--count) !important;
  570. }
  571. .ycFly {
  572. animation: ycFly 2s infinite alternate !important;
  573. }
  574. @keyframes ycFly {
  575. 100% {
  576. transform: translateY(12%);
  577. }
  578. }
  579. .ycHover4 {
  580. border-bottom: 6rpx #F6BE3C solid;
  581. }
  582. .ycHover4:hover {
  583. margin-top: 6rpx;
  584. border-bottom: 0rpx #F6BE3C solid;
  585. }
  586. .ycRotate {
  587. animation-name: ycRotate;
  588. animation-duration: 10s;
  589. animation-timing-function: linear;
  590. animation-iteration-count: infinite;
  591. }
  592. @keyframes ycRotate {
  593. 0% {
  594. transform: rotate(0deg);
  595. }
  596. 100% {
  597. transform: rotate(1turn);
  598. }
  599. 0% {
  600. transform: rotate(0deg);
  601. }
  602. 100% {
  603. transform: rotate(1turn);
  604. }
  605. }
  606. .ycLive {
  607. width: 10%;
  608. height: 50%;
  609. position: relative;
  610. --color: white;
  611. background-color: var(--color);
  612. transform-origin: bottom;
  613. animation: ycLive 0.6s 0.2s infinite ease-in-out;
  614. }
  615. .ycLive::after {
  616. right: 200%;
  617. animation: ycLive 0.6s 0.4s infinite ease-in-out;
  618. }
  619. .ycLive::before {
  620. left: 200%;
  621. animation: ycLive 0.6s 0s infinite ease-in-out;
  622. }
  623. .ycLive::after,
  624. .ycLive::before {
  625. width: 100%;
  626. height: 100%;
  627. content: '';
  628. position: absolute;
  629. bottom: 0;
  630. background-color: var(--color);
  631. transform-origin: bottom;
  632. }
  633. @keyframes ycLive {
  634. 0%,
  635. 100% {
  636. transform: scaleY(1);
  637. }
  638. 50% {
  639. transform: scaleY(0.6);
  640. }
  641. }
  642. .ycMusic {
  643. position: relative;
  644. --contentBefore: '♫';
  645. --contentAfter: '♩';
  646. --color: #000000;
  647. --zIndex: 9999;
  648. z-index: var(--zIndex);
  649. }
  650. .ycMusic::after,
  651. .ycMusic::before {
  652. position: absolute;
  653. left: -10%;
  654. bottom: -30%;
  655. color: var(--color);
  656. z-index: calc(var(--zIndex) - 1);
  657. opacity: 0;
  658. transform: translateY(0) translateX(0) scale(0);
  659. }
  660. .ycMusic::after {
  661. content: var(--contentAfter);
  662. animation: ycMusic 2.5s 1.25s linear infinite;
  663. }
  664. .ycMusic::before {
  665. content: var(--contentBefore);
  666. animation: ycMusic 2.5s linear infinite;
  667. }
  668. @keyframes ycMusic {
  669. 0% {
  670. transform: translateX(0) translateY(0) scale(0);
  671. opacity: 0;
  672. }
  673. 5% {
  674. transform: translateY(0) translateX(0) scale(.6);
  675. opacity: 1;
  676. }
  677. 50% {
  678. transform: translateX(-40rpx) translateY(-50rpx) scale(1);
  679. opacity: 1;
  680. }
  681. 90% {
  682. transform: translateX(-50rpx) translateY(-100rpx) scale(1);
  683. opacity: 0;
  684. }
  685. 93% {
  686. transform: translateX(-50rpx) translateY(-100rpx) scale(0);
  687. opacity: 0;
  688. }
  689. 100% {
  690. transform: translateX(0) translateY(0) scale(0);
  691. opacity: 0;
  692. }
  693. }
  694. .ycPortrait {
  695. position: relative;
  696. --color: #ff0081;
  697. }
  698. .ycPortrait::after,
  699. .ycPortrait::before {
  700. position: absolute;
  701. content: '';
  702. left: 0;
  703. right: 0;
  704. bottom: 0;
  705. top: 0;
  706. margin: auto;
  707. box-sizing: border-box;
  708. border: 1rpx solid var(--color);
  709. border-radius: 50%;
  710. width: 100%;
  711. height: 100%;
  712. }
  713. .ycPortrait::after {
  714. transform: scale(1.1);
  715. animation: ycPortrait 0.8s linear infinite;
  716. }
  717. @keyframes ycPortrait {
  718. 0%,
  719. 100% {
  720. transform: scale(1);
  721. opacity: 0;
  722. }
  723. 1% {
  724. transform: scale(1);
  725. opacity: 1;
  726. }
  727. 95% {
  728. transform: scale(1.3);
  729. opacity: 0;
  730. }
  731. }
  732. @keyframes ycBeat {
  733. 0% {
  734. transform: scale(1);
  735. }
  736. 50% {
  737. transform: scale(0.8);
  738. }
  739. 100% {
  740. transform: scale(1);
  741. }
  742. }
  743. .ycBeat {
  744. animation: ycBeat 0.8s linear infinite;
  745. }