|
| 1 | +<template> |
| 2 | + <div class="preview"> |
| 3 | + <h2>Choose a template on the left to get started.</h2> |
| 4 | + <span class="iconify animate-bounce" data-icon="carbon:arrow-left"></span> |
| 5 | + </div> |
| 6 | +</template> |
| 7 | + |
| 8 | +<style scoped> |
| 9 | +.preview { |
| 10 | + max-width: 75%; |
| 11 | + margin: 25% auto; |
| 12 | + text-align: center; |
| 13 | + color: #a1a1aa; |
| 14 | +} |
| 15 | +.iconify { |
| 16 | + vertical-align: middle; |
| 17 | + width: 10%; |
| 18 | + height: 10%; |
| 19 | +} |
| 20 | +@media (max-width: 768px) { |
| 21 | + .iconify { |
| 22 | + width: 20%; |
| 23 | + height: 20%; |
| 24 | + } |
| 25 | +} |
| 26 | +/* copied from https://windicss.org/utilities/behaviors.html#animation */ |
| 27 | +/* adjusted with translateX */ |
| 28 | +@keyframes bounce { |
| 29 | + 0%, |
| 30 | + 100% { |
| 31 | + -webkit-transform: translateX(0); |
| 32 | + transform: translateX(0); |
| 33 | + -webkit-animation-timing-function: cubic-bezier(0.8, 0, 1, 1); |
| 34 | + animation-timing-function: cubic-bezier(0.8, 0, 1, 1); |
| 35 | + } |
| 36 | + 50% { |
| 37 | + -webkit-transform: translateX(-25%); |
| 38 | + transform: translateX(-25%); |
| 39 | + -webkit-animation-timing-function: cubic-bezier(0, 0, 0.2, 1); |
| 40 | + animation-timing-function: cubic-bezier(0, 0, 0.2, 1); |
| 41 | + } |
| 42 | +} |
| 43 | +@-webkit-keyframes bounce { |
| 44 | + 0%, |
| 45 | + 100% { |
| 46 | + -webkit-transform: translateX(0); |
| 47 | + transform: translateX(0); |
| 48 | + -webkit-animation-timing-function: cubic-bezier(0.8, 0, 1, 1); |
| 49 | + animation-timing-function: cubic-bezier(0.8, 0, 1, 1); |
| 50 | + } |
| 51 | + 50% { |
| 52 | + -webkit-transform: translateX(-25%); |
| 53 | + transform: translateX(-25%); |
| 54 | + -webkit-animation-timing-function: cubic-bezier(0, 0, 0.2, 1); |
| 55 | + animation-timing-function: cubic-bezier(0, 0, 0.2, 1); |
| 56 | + } |
| 57 | +} |
| 58 | +.animate-bounce { |
| 59 | + -webkit-animation: bounce 1s infinite; |
| 60 | + animation: bounce 1s infinite; |
| 61 | +} |
| 62 | +</style> |
0 commit comments