1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <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 1.0s infinite ease-in-out;
- animation: scaleout 1.0s infinite ease-in-out;
- }
-
- @-webkit-keyframes scaleout {
- 0% { -webkit-transform: scale(0.0) }
- 100% {
- -webkit-transform: scale(1.0);
- opacity: 0;
- }
- }
-
- @keyframes scaleout {
- 0% {
- transform: scale(0.0);
- -webkit-transform: scale(0.0);
- } 100% {
- transform: scale(1.0);
- -webkit-transform: scale(1.0);
- opacity: 0;
- }
- }
- </style>
|