Kaynağa Gözat

Landing page logo animation

Nikita Krupin 3 yıl önce
ebeveyn
işleme
dcf7ac93ad
1 değiştirilmiş dosya ile 29 ekleme ve 0 silme
  1. 29 0
      Website/pages/index.vue

+ 29 - 0
Website/pages/index.vue

@@ -1,6 +1,8 @@
 <template>
   <div>
 
+    <svg id="thumbslogo" width="150" height="150" viewBox="0 0 240 240" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;"><path d="M139.113,65.266l-57.339,-0c-5.288,-0 -9.812,3.185 -11.723,7.772l-19.241,44.916c-0.573,1.466 -0.892,2.995 -0.892,4.651l0,12.742c0,7.009 5.734,12.743 12.742,12.743l40.202,-0l-6.053,29.115l-0.191,2.039c0,2.612 1.083,5.033 2.803,6.754l6.754,6.689l41.985,-41.985c2.294,-2.294 3.695,-5.479 3.695,-8.984l0,-63.71c0,-7.009 -5.734,-12.742 -12.742,-12.742Zm25.485,-0l-0,76.452l25.484,0l-0,-76.452l-25.484,-0Z" style="fill:url(#_Linear1);fill-rule:nonzero;"/><g id="Thumb-Down--m.io-" serif:id="Thumb Down (m.io)"></g><defs><linearGradient id="_Linear1" x1="0" y1="0" x2="1" y2="0" gradientUnits="userSpaceOnUse" gradientTransform="matrix(152.906,153.295,-153.295,152.906,43.6442,45.958)"><stop offset="0" style="stop-color:#ff4444;stop-opacity:1"/><stop offset="0.56" style="stop-color:#4c0000;stop-opacity:1"/><stop offset="1" style="stop-color:#000;stop-opacity:1"/></linearGradient></defs></svg>
+
     <h1 style="font-size: 3em; margin-bottom:0;">Return YouTube Dislike</h1>
     <div style="color: #999">
       <p style="margin-top: 0">Browser extension and an API that show you dislikes on youtube</p>
@@ -26,6 +28,33 @@
   </div>
 </template>
 
+<style scoped>
+#thumbslogo {
+  opacity: 0;
+  transform: scale(0) rotate(180deg);
+  margin-top: -150px;
+  animation: popin 1s 1s ease-in-out 1 forwards, thumbsflip 2s 3s ease-in-out infinite alternate;
+}
+@keyframes popin {
+  0% {
+    transform: rotate(180deg) scale(0.5);
+    opacity: 0;
+  } 100% {
+    transform: rotate(0deg) scale(1);
+    opacity: 1;
+  }
+}
+@keyframes thumbsflip {
+  0% {
+    transform: rotate(0deg) scale(1);
+  } 50% {
+    transform: rotate(0) scale(1);
+  } 100% {
+    transform: rotate(180deg) scale(.9);
+  }
+}
+</style>
+
 <script>
 export default {
   data() {