Search
 
SCRIPT & CODE EXAMPLE
 

CSS

animated background css

/*
	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%;
    }
}
Comment

animation background css

@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;
}
Comment

html animated background

    <video id="video" autoplay="true" loop muted>
      <source src="background.mp4" type="video/mp4"/>
    </video>
Comment

PREVIOUS NEXT
Code Example
Css :: move scrollbar on element to right side 
Css :: css class 
Css :: sass import 
Css :: round image css 
Css :: css make ul on multiple lines 
Css :: constraint barrier example 
Css :: how to change only bullet color in css 
Css :: css focus-within 
Css :: css add circle to icon cart 
Css :: in flex-wrap remove last item margin for every row 
Css :: fixed position css 
Css :: css flexbox 
Css :: css select alternate elements 
Css :: how to style rule to apply the Border Box model css 
Css :: npm ERR! 404 Not Found - GET https://registry.npmjs.org/taiwindcss - Not found 
Css :: space between items in css 
Css :: auto zoom image css 
Css :: fontawesome trash icon 
Css :: user-select: none; 
Css :: scss global class 
Css :: css flex justify self 
Css :: what to use instead of overflow overlay 
Css :: purge tailwind css 
Css :: background images in css 
Css :: scroll div when page scroll 
Css :: css padding property 
Css :: phone css 
Css :: pixel to inches 
Css :: how to allign li in row 
Css :: how do img with same 
ADD CONTENT
Topic
Content
Source link
Name
7+7 =