refactoring clouds to propper component

This commit is contained in:
Antoine M 2024-03-14 11:14:15 +01:00
parent b19b502a83
commit 50231292f9
2 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,13 @@
.cloud-animation {
@apply w-full h-full fixed top-0 left-0;
z-index: 90;
position: fixed;
z-index: 40;
pointer-events: none;
scale: 1.1;
filter: blur(2px);
svg {
width: 100px;
heigth: 100px;
}
}

View File

@ -0,0 +1,16 @@
import React from "react";
import cloudPageTransition from "../../assets/animations/transition-nuages-pages";
import Lottie from "lottie-react";
export default function Clouds() {
return (
<Lottie
className='cloud-animation'
animationData={cloudPageTransition}
speed={21}
loop={false}
autoplay
/>
);
}