Skip to content

Commit 56dc639

Browse files
committed
feat: vuetify-logo add animation
1 parent f511b45 commit 56dc639

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

src/components/Introduction.vue

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
</div>
2020
<div class="margin-top-50">
2121
<!-- vuetify -->
22-
<img src="@/assets/img/vuetify-logo-light-atom.svg" alt="vuetify-logo" class="img-size" />
22+
<img src="@/assets/img/vuetify-logo-light-atom.svg" alt="vuetify-logo" class="img-size vuetify-logo" />
2323
<h1>Material Design Framework</h1>
2424
<p>Vuetify is a Vue UI Library with beautifully handcrafted Material Components. No design skills required — everything you need to create amazing applications is at your fingertips.</p>
2525
<a href="https://vuetifyjs.com/en/introduction/why-vuetify/#what-is-vuetify3f" target="_blank">What is Vuetify</a><br /><br />
@@ -45,4 +45,23 @@ export default {
4545
.margin-top-50 {
4646
margin-top: 50px;
4747
}
48+
49+
.vuetify-logo {
50+
pointer-events: none;
51+
}
52+
53+
@media (prefers-reduced-motion: no-preference) {
54+
.vuetify-logo {
55+
animation: vuetify-logo-spin infinite 16s linear;
56+
}
57+
}
58+
59+
@keyframes vuetify-logo-spin {
60+
from {
61+
transform: rotate(0deg);
62+
}
63+
to {
64+
transform: rotate(360deg);
65+
}
66+
}
4867
</style>

0 commit comments

Comments
 (0)