css keyframes animation
CSS
@keyframes mymove {
from {top: 0px;}
to {top: 200px;}
}//css keyframes
#image{
width: 100px;
height: 100px;
background-color: red;
position: relative;
animation: monFrame 5s linear 2s infinite alternate;
}
@keyframes monFrame {
0% {left:0px; top:0px;}
25% {left:500px; top:0px;}
50% {left:500px; top:500px;}
75% {left:0px; top:500px;}
100% {left:0px; top:0px;}
} <!DOCTYPE html>
<html>
<head>
<style>
div {
width: 100px;
height: 100px;
background-color: red;
position: relative;
animation: myfirst 5s linear 2s infinite alternate;
}
@keyframes myfirst {
0% {background-color:red; left:0px; top:0px;}
25% {background-color:yellow; left:200px; top:0px;}
50% {background-color:blue; left:200px; top:200px;}
75% {background-color:green; left:0px; top:200px;}
100% {background-color:red; left:0px; top:0px;}
}
</style>
</head>
<body>
<p><b>Note:</b> This example does not work in Internet Explorer 9 and earlier versions.</p>
<div><p>you can add text in this box or anithing else like a pictrue</p></div>
</body>
</html><style>
#ball {
width: 100px;
height: 100px;
margin: 50px auto;
position: relative;
border-radius: 50%;
background: linear-gradient(
35deg,
#ccffff,
#ffcccc
);
/*"Call" the animation "function" */
animation-name: bounce;
animation-duration: 1s;
animation-iteration-count: infinite;
animation-delay: 2s;
/* Normal, reverse, alternate(between the fwd and back)
and alternate-reverse */
animation-direction: reverse;
/* Ease is deafault, use cubic-bezier(n,n,n,n) for custom */
animation-timing-function: linear;
/* if you want something to display from hidden
set the opacity to 0 and in the keyframe steps bring
the opacity to 1 gradually to stop it flashing */
}
/* The animation "bounce" */
@keyframes bounce{
/* start */
0% {
top: 0px;
}
/* step (you can add multiple incremental steps from 1-100) */
50% {
top: 249px;
width: 130px;
height: 90px;
}
/* end (you can count down from 100 to 0 too) */
100% {
top: 0px;
}
}
</style>
<div id="ball"></div>
Also in CSS:
- Title
- add css to an html file
- Category
- CSS
- Title
- how to change highlight color on website
- Category
- CSS
- Title
- how to change button gradient
- Category
- CSS
- Title
- png shadow css
- Category
- CSS
- Title
- table css
- Category
- CSS
- Title
- make buttons round css
- Category
- CSS
- Title
- how do i update my gatsby version?
- Category
- CSS
- Title
- why tr border not showing
- Category
- CSS
- Title
- css overflow truncate
- Category
- CSS
- Title
- what is css
- Category
- CSS
- Title
- how to add css for ::before event in jquery
- Category
- CSS
- Title
- loading screen svg and css animation
- Category
- CSS
- Title
- css to scss
- Category
- CSS
- Title
- rel css
- Category
- CSS
- Title
- google fonts css
- Category
- CSS
- Title
- sphinx css templates
- Category
- CSS
- Title
- css how to style id
- Category
- CSS
- Title
- insert css file in html
- Category
- CSS
- Title
- update data in firestore
- Category
- CSS
- Title
- how to stick a text to a div in css
- Category
- CSS
- Title
- css select all elements except last css
- Category
- CSS
- Title
- box shadow
- Category
- CSS
- Title
- remove arrows from input type number
- Category
- CSS
- Title
- how to apply bg image in inline css
- Category
- CSS
- Title
- how to horizontally center header at the top of page with flexbox css
- Category
- CSS
- Title
- a no line css
- Category
- CSS
- Title
- how to make space in pug css
- Category
- CSS
- Title
- gradient over image css
- Category
- CSS
- Title
- change border highlight color on an input text element
- Category
- CSS
- Title
- javascript remoev css class
- Category
- CSS
- Title
- css animate flashing
- Category
- CSS
- Title
- round button css
- Category
- CSS
- Title
- background color
- Category
- CSS
- Title
- make footer stick to bottom without overlap over other elements
- Category
- CSS
- Title
- css animation library
- Category
- CSS
- Title
- Get Theme from URL Parameter and enable CSS theme
- Category
- CSS
- Title
- css psedo class
- Category
- CSS
- Title
- adding background image css
- Category
- CSS
- Title
- responsive css grid
- Category
- CSS
- Title
- css stop scrollbar
- Category
- CSS
- Title
- ref css in jsp
- Category
- CSS
- Title
- css center image horizontal and vertical flexbox
- Category
- CSS
- Title
- text align css
- Category
- CSS
- Title
- stop padding from changing div size
- Category
- CSS
- Title
- get element with href css
- Category
- CSS
- Title
- how to change only bullet color in css
- Category
- CSS
- Title
- comment out css
- Category
- CSS
- Title
- DISABLE the Horizontal Scroll
- Category
- CSS
- Title
- border-box css
- Category
- CSS
- Title
- css white-space
- Category
- CSS
- Title
- css remove border input focus
- Category
- CSS
- Title
- css reset
- Category
- CSS
- Title
- mettre une image au milieu css
- Category
- CSS
- Title
- striped tables css
- Category
- CSS
- Title
- css text align right
- Category
- CSS
- Title
- how to remove link blue color from a tag using css
- Category
- CSS
- Title
- svg tailwind
- Category
- CSS
- Title
- css align text
- Category
- CSS
- Title
- col-xs-12 col-sm-4 col-md-4 col-lg-4
- Category
- CSS
- Title
- css center text
- Category
- CSS
- Title
- css first h element
- Category
- CSS
- Title
- css font size
- Category
- CSS
- Title
- touch scroll css gallery
- Category
- CSS
- Title
- do some css using js on selector
- Category
- CSS
- Title
- scale textarea
- Category
- CSS
- Title
- html link to css in another folder
- Category
- CSS
- Title
- angular headers for enc type
- Category
- CSS
- Title
- how to link your css file to html
- Category
- CSS
- Title
- Also define the standard property 'transition'
- Category
- CSS
- Title
- onhover mouse pointer css
- Category
- CSS
- Title
- background image with color overlay gradient css
- Category
- CSS
- Title
- css width calculation
- Category
- CSS
- Title
- change color select arrow css cf7
- Category
- CSS
- Title
- javascript canvas pixel art
- Category
- CSS
- Title
- css border width
- Category
- CSS
- Title
- carousel inner item populate with for loop puting active class on all carousel item
- Category
- CSS
- Title
- pseudo elements css
- Category
- CSS
- Title
- how to use direct child for ol in css
- Category
- CSS
- Title
- css grid gap
- Category
- CSS
- Title
- text-overflow ellipsis multiple lines
- Category
- CSS
- Title
- how to do a background blur in css
- Category
- CSS
- Title
- add own image in cursor using css
- Category
- CSS
- Title
- ::-ms-clear
- Category
- CSS
- Title
- css height auto vs 100
- Category
- CSS
- Title
- overflow css
- Category
- CSS
- Title
- three dots in css
- Category
- CSS
- Title
- over to remove padding css
- Category
- CSS
- Title
- burger menu css
- Category
- CSS
- Title
- css modules react
- Category
- CSS
- Title
- have button beside form input
- Category
- CSS
- Title
- display flex css
- Category
- CSS
- Title
- align-self
- Category
- CSS
- Title
- System.FormatException: 'String '09-03-2020' was not recognized as a valid DateTime.'
- Category
- CSS
- Title
- js ransform css
- Category
- CSS
- Title
- css form styling
- Category
- CSS
- Title
- uibutton image
- Category
- CSS
- Title
- css transition
- Category
- CSS
- Title
- how to use visited hover active and visited in css
- Category
- CSS
- Title
- flow direction in css
- Category
- CSS
- Title
- centrer verticalement css
- Category
- CSS