/*
use @keyframes and the animation property
see this code running here: https://codepen.io/hylobates-lar/pen/qBbQeON
*/
html, body {
width: 100%;
height:100%;
}
body {
background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
background-size: 400% 400%;
animation: gradient 15s ease infinite;
}
@keyframes gradient {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}
@keyframes gradient {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}
body{
width: 100vw;
height: 100vh;
}
div{
transition: all .3s ease-in-out;
background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
background-size: 400% 400%;
animation: gradient 15s ease infinite;
height: 500px;
width: 500px;
}
<video id="video" autoplay="true" loop muted>
<source src="background.mp4" type="video/mp4"/>
</video>
Code Example |
---|
Css :: trim background image css |
Css :: color gradient |
Css :: npm next-css |
Css :: flip something css |
Css :: css selector last child |
Css :: animation clip path |
Css :: flex box css |
Css :: include css typo3 |
Css :: Tailwindcss Breadcrumb |
Css :: round one side of div css |
Css :: display css |
Css :: css color codes |
Css :: tel css |
Css :: aclocal: not found |
Css :: css multiple classes same rule |
Css :: hover |
Css :: css or selector |
Css :: offsetx and offsety in css |
Css :: andy bells css reset |
Css :: fluorescent blue hex code |
Css :: screen sizes for css media |
Css :: background remover |
Css :: css background size |
Css :: overlap section |
Css :: media query css file |
Css :: responsive css template |
Css :: css structure |
Css :: hex values |
Css :: css pixel art |
Css :: mouse hold css effect |