Animation on title!!!
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
fc93a19f82
commit
31e0b07113
|
@ -1,6 +1,6 @@
|
|||
<div class="px-5 md:px-0 col-span-7 md:col-span-5">
|
||||
<h1
|
||||
class="font-roboto_slab text-center text-2xl lg:text-6xl xl:text-7xl w-auto md:w-max mt-10 lg:mt-32 mx-auto font-bold"
|
||||
class="font-roboto_slab text-center text-2xl lg:text-6xl xl:text-7xl w-auto md:w-max mt-10 lg:mt-32 mx-auto font-bold h1-shadow"
|
||||
>
|
||||
Welcome to my website
|
||||
</h1>
|
||||
|
@ -35,3 +35,15 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- How to do the animation and reverse it: https://stackoverflow.com/a/44742399 -->
|
||||
<style>
|
||||
.h1-shadow {
|
||||
text-shadow: 2px 2px gray;
|
||||
transition: text-shadow 1s cubic-bezier(0.075, 0.82, 0.165, 1) ;
|
||||
}
|
||||
.h1-shadow:hover {
|
||||
text-shadow: 5px 5px gray;
|
||||
transition: text-shadow 0.25s cubic-bezier(0.075, 0.82, 0.165, 1) ;
|
||||
}
|
||||
</style>
|
Loading…
Reference in New Issue