ai-watch-app/components/our-loading/loaders/scale-out.vue

47 lines
858 B
Vue

<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>