123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- <template>
- <view>
- <view
- :style="{
- backgroundColor: color,
- width: size + 40 + 'px',
- height: size + 40 + 'px'
- }"
- class="spinner-inside"
- ></view>
- </view>
- </template>
- <script>
- export default {
- name: 'scaleOut',
- props: {
- color: String,
- size: Number
- }
- };
- </script>
- <style scoped>
- .spinner-inside {
- margin: 25px auto;
- border-radius: 100%;
- -webkit-animation: scaleout 1s infinite ease-in-out;
- animation: scaleout 1s infinite ease-in-out;
- }
- @-webkit-keyframes scaleout {
- 0% {
- -webkit-transform: scale(0);
- }
- 100% {
- -webkit-transform: scale(1);
- opacity: 0;
- }
- }
- @keyframes scaleout {
- 0% {
- transform: scale(0);
- -webkit-transform: scale(0);
- }
- 100% {
- transform: scale(1);
- -webkit-transform: scale(1);
- opacity: 0;
- }
- }
- </style>
|