Skip to content

Commit 63c2b90

Browse files
author
Pooya Parsa
committed
sexy logo flip
1 parent d338ffe commit 63c2b90

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

docs/pages/index.vue

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<div class="container">
55
<div class="row align-items-center">
66
<div class="col-6 mx-auto col-md-6 order-md-2">
7-
<img src="~/static/icon.png" alt="Logo" class="img-fluid mx-auto d-block mb-3 mb-md-0">
7+
<img src="~/static/icon.png" alt="Logo" class="img-fluid mx-auto d-block mb-3 mb-md-0" id="logo">
88
</div>
99
<div class="col-md-6 order-md-1 text-center text-md-left pr-md-5">
1010
<h1 class="mb-3 bd-text-purple-bright">Bootstrap + Vue</h1>
@@ -40,10 +40,26 @@
4040
.version a {
4141
color: white;
4242
}
43+
44+
#logo {
45+
animation: flip 1s;
46+
transform-style: preserve-3d;
47+
}
48+
49+
@keyframes flip {
50+
0% {
51+
opacity: .5;
52+
transform: rotateY(180deg);
53+
}
54+
100% {
55+
opacity: 1;
56+
transform: rotateY(0deg);
57+
}
58+
}
4359
</style>
4460

4561
<script>
46-
import { version } from '~/content';
62+
import { version } from "~/content";
4763
4864
export default {
4965
computed: {

0 commit comments

Comments
 (0)