text animation css
CSS
<!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>
<!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>CSS animation properties template:
{
animation-name: anima-name;
animation-duration: 1s;
animation-iteration-count: infinite;
animation-delay: 2s;
animation-direction: reverse | normal | alternate | alternate-reverse ;
animation-timing-function: ease | ease-out | ease-in | ease-in-out | linear | cubic-bezier(x1, y1, x2, y2) (e.g. cubic-bezier(0.5, 0.2, 0.3, 1.0));
animation-fill-mode:forwards | backwards | both | none;
}
@keyframes anima-name {
from {
background-position:right;
}
to {
background-position:left;
}
}
@keyframes anima-name {
0% {
background-color: red;
}
50% {
background-color: green;
}
100% {
background-color: red;
}
}
<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
- Node.js: printing to console without a trailing newline
- Category
- CSS
- Title
- css border radius
- Category
- CSS
- Title
- convert sass to css
- Category
- CSS
- Title
- css flex property
- Category
- CSS
- Title
- scss @mixin base
- Category
- CSS
- Title
- how do i update my gatsby version?
- Category
- CSS
- Title
- css hiddden
- Category
- CSS
- Title
- centrer verticalement css
- Category
- CSS
- Title
- print zend db select query to string
- Category
- CSS
- Title
- hr css mdn
- Category
- CSS
- Title
- django css file not loading heroku
- Category
- CSS
- Title
- css image radius
- Category
- CSS
- Title
- media querycss
- Category
- CSS
- Title
- css ios disable zoom
- Category
- CSS
- Title
- css grid
- Category
- CSS
- Title
- css backdrop filter
- Category
- CSS
- Title
- for loops in cpp
- Category
- CSS
- Title
- toggle css class in javascript
- Category
- CSS
- Title
- css in sql query
- Category
- CSS
- Title
- css tricks media queries
- Category
- CSS
- Title
- target css by form name
- Category
- CSS
- Title
- como trocar ordem dos elementos pelo dispositivo html
- Category
- CSS
- Title
- bootstrap.min.css
- Category
- CSS
- Title
- make buttons round css
- Category
- CSS
- Title
- css two attribute selector
- Category
- CSS
- Title
- font condensed
- Category
- CSS
- Title
- html font size
- Category
- CSS
- Title
- comentarios en archivo scss
- Category
- CSS
- Title
- font size css
- Category
- CSS
- Title
- add image under header html
- Category
- CSS
- Title
- tzutc
- Category
- CSS
- Title
- background color animation css
- Category
- CSS
- Title
- css flex
- Category
- CSS
- Title
- css color picker
- Category
- CSS
- Title
- css border opacity
- Category
- CSS
- Title
- material design css
- Category
- CSS
- Title
- Scaling Images and Videos css
- Category
- CSS
- Title
- word spacing css
- Category
- CSS
- Title
- asp.net set css class in code behind
- Category
- CSS
- Title
- QAnon Won't believe who
- Category
- CSS
- Title
- how to apply different properties to different paragraphs in css
- Category
- CSS
- Title
- text underline hover css
- Category
- CSS
- Title
- access css and js files inside resources folder in laravel
- Category
- CSS
- Title
- background gradient vertical css
- Category
- CSS
- Title
- css doesnt update
- Category
- CSS
- Title
- add background image css
- Category
- CSS
- Title
- descendent selector in css
- Category
- CSS
- Title
- select even child css
- Category
- CSS
- Title
- css text shadow not showing in mac chrome
- Category
- CSS
- Title
- animation shorthand css
- Category
- CSS
- Title
- css circle with overlay
- Category
- CSS
- Title
- will change css
- Category
- CSS
- Title
- css grid example
- Category
- CSS
- Title
- css last child with class
- Category
- CSS
- Title
- static css in django
- Category
- CSS
- Title
- how to add image with url in css
- Category
- CSS
- Title
- css p tag text wrap
- Category
- CSS
- Title
- sass vs scss
- Category
- CSS
- Title
- css no overflow
- Category
- CSS
- Title
- css hero image
- Category
- CSS
- Title
- ggo
- Category
- CSS
- Title
- italic in css
- Category
- CSS
- Title
- how to make a button grow in css
- Category
- CSS
- Title
- orientation css max and min width media query
- Category
- CSS
- Title
- what does css stand for
- Category
- CSS
- Title
- remove list bullet css
- Category
- CSS
- Title
- stop text from wrapping
- Category
- CSS
- Title
- on hover chang only border color of a button css
- Category
- CSS
- Title
- choose grid position html
- Category
- CSS
- Title
- align-self
- Category
- CSS
- Title
- css animation generator
- Category
- CSS
- Title
- css justify content
- Category
- CSS
- Title
- aligner et centrer element css html
- Category
- CSS
- Title
- how to only make a part bold in css
- Category
- CSS
- Title
- animate css cdn
- Category
- CSS
- Title
- css display none but take up space
- Category
- CSS
- Title
- grid-template-areas css
- Category
- CSS
- Title
- how to change hyperlink color in css
- Category
- CSS
- Title
- how to write if condition in css
- Category
- CSS
- Title
- .alert-validation css
- Category
- CSS
- Title
- CKEDITOR PUSH TEXT IN FRONT OF CURSOR
- Category
- CSS
- Title
- comments in css
- Category
- CSS
- Title
- referance html id css
- Category
- CSS
- Title
- css hide element
- Category
- CSS
- Title
- add css file to html
- Category
- CSS
- Title
- text shadow css generator
- Category
- CSS
- Title
- move bullets in css
- Category
- CSS
- Title
- change css to scss angular
- Category
- CSS
- Title
- remove border select css
- Category
- CSS
- Title
- css vw scrollbar
- Category
- CSS
- Title
- css immediate child
- Category
- CSS
- Title
- css hide div
- Category
- CSS
- Title
- image size css
- Category
- CSS
- Title
- css comic sans
- Category
- CSS
- Title
- css gradient
- Category
- CSS
- Title
- keep aspect ratio of image css
- Category
- CSS
- Title
- css before after
- Category
- CSS
- Title
- css change text color
- Category
- CSS
- Title
- css keep background image from scrolling
- Category
- CSS
- Title
- remove bullets from list css
- Category
- CSS