Animation in Css
Animation in Css
Somantic
tag
Bul
totomi Valuog
docsn'
manqin toP >
havo
dolautt
Sochonf on ticlo
<Sochion bordo
kortco >A1 <
lavhcol bordoy IP Solid blad
displaginlino -
Korticlo A2 lontclol
(antides A3 lahclol
<lsacton
A1
no spa co
no spaco
masqin top + botom Valuos)
Loo 1t doosn't hovg
Box MoDEL spaco i ip and. aurd
want to avo
box model
html t'on
R
Ly Contont e
botto m fobses
line
Bockor dConfont
Consisl
) Maqio
) Patdirg
9) Bordar
PaDDINo
Horo
havo ting
) Paddirg- op Shot hard proponty t
) Padding -loft
a) Potdirg -Right
poting
) Podaing -Botorm
prctig Co don'
alalectox
Nalo
Propor .
EXAMPIE
P
Paselig o poting - bil :to p;
Pacding-ioto:bop,
Wo Can iko
top eottom
Paddi n :uh pr 25
1R Bottom
top
25 px
Foding 14R
tB
Paddi ng
TRAL B
Pobdi ng
NOTE
In tovvia
thoy ask pading \blat os
Bottom
TOP Right
Padding :
MARGIN
ino an clomon
* Spaco
botuwoon inagnan
* Hovo USO
) Mawgin - top
) Mavqin - botom
Shoythand poopos ty this
a) Margin -Yight Mangin
1) Mangin -Lot
SyNTAX
Solector
magn : Valuo
3
Framplo.
P
botiom hoo px,
masgib 5o px (os)mavatD -
bovdon bodo of colo Ly
-colbT bordo 8.
boda -os- Shyla
hard Bhort ’ Shylo bovdor- a.
hi:
bordor -o-f Lwdth
width bordor- 1.
ehnent. html OtOUrc line botcon Spaco
BORDER
oton manain bocomo oloment noxt
Pava
botbm
1 manqn pna So
EXANMPLE
ootault havo nt Doos
mavgen dofault have
ao
8omantie but
otoo By *
hoadin apn pavoq dofault
NOTE
B, R, I5 Mongto
T
pzJh5
TB Mangin
nlangin
R
pr95
top
B R
thig fiko ois (an
Example bordor
uidth Dx
bondor
bovdor1x 8olid back ; Shyle lid
wiclth Style Color bondo -color :bak
3
bondor
have 1 typos
D dashod
) doublo
hddon
6) old
none
BORDER RAD US
olemont (oYroY
radus
1. bordo - top
laft-Dadus
D bordor - top
1adus Px Value
) bovdoY - top igh! -
9) bodor top- coloY
top- widt
4) bordoY
B)bordoy - op- slyle
colo
-1ght
bordor -widt
) -right
borcbr
shyle
) -vight-
bordor
)
lo-Yadiuo
_bo
tom
tom-
bo adae
bordor - ight -
)
bo tom-
bordor -
al Color
botom-
bordor-
9) -stub
bottom
bordeY-
4) -widt
-botom
5) boido
lott.
-
bordoy -color
) bordor - lot
)
-lot -upldt
a) bordoY
-loft- shyla
) bordor
EX9M2E
Contont
Colid back ;
Stulo : nono
botHom
bordo
(or) Contont
: px
kovco -adus
PRODERTY
POs1TtON on
dlomont anwhoro
Posi tion
satc
dofault Valuo Cnt
f dopontantt opory
oloront tho top ioht
Pooiton tho
împottant
bottom
olonont
tho
Whar
positioning olornont
Cannot
Slatic TtHNGS
-JN DosITDN
HAVE
5
|vALDES
) slatic
Absoluto Basts
ror
doloctor
Positton : Value,
EAMPLE
REAL TIME
GP
C2
Roatvo
Absoluto
PE s state
Cannot
sts dofault Valuo ositioning cor ori
Cannot
CUko
p
posi
tion
static
A
BSOUJTE
position Absolute i
loftOpx
top
Positon:Tolativo: P2
2. FIXED
tho
Cant
olomont
tobpago thon olua
vod shacd tho Sporo
GP
hox olomont
fxcd both
and
some
Considoy as GP maatno
(both
(an move to
* absoluto we
gP to
COnnol mOvo tho
olement
AND FXED:
OF PBSOLUTE
DIFFER ENCE
Can Sond tho
J absoluto
GYand ront and
lino to
to imaginan fxad not bossibo
but
to bavont
Azod it doosn'
Consicor imagira
ard oluuny
Patonts
Same
aluoug slay
Ovon tho page
EXAMPLE
Hoadoy Hove hoocos
PosiHon on top
b opr
SHCKY
want to Hcky ho olernont
anyehor
(oobpago
EAMPIE
Haccder
Position
:stcky
top 0 px
top and
haados is sticko
sHickocl
haacoy
HorO tho
SColing loorn
ponont
eomont
hocoe GHick
than thon that timo
top and
ebnmqotirg
posittonung
as shcly
ato olomont
An
SCYDll position
leval
-BlOCK.
to
proporty of
BORDER
cimilar
Bovdor- block
bordlor - block
poopovty
tho
but diroction
borob bock bordor
leenclert toft but
and
19
rfaht botom on
(it apply
top 9 moahs
tÙ borcot block
otom
top anol
Hovo havo 3 thing
1. bovdor - Hock -uidth
0f borcei bock
Ly wiolth
2 bordoy -block -shulo
sdtqle o borcor - style
3. boxdoY - block - Color
Colo b5 bodo -bock
s dolault
* boxcor -bock - Shyle
Exarmple
hi
boyclo - block : 5 px solid dock
TRANSFORM
UDant to tansfov m
Iranstor m
8D
Tianstovm propovty applios
tsanstormation to olernont ois popott
to votato Scalo, novo , Skos ote
oinnents
a dofault Valuo
tansfo am 95 nono
Transbr m is also
olbctox
RANSFORM YAUES
8) Scal X(x)
q) Scale V ty)
1o) Scal o
) otato (analc)
) Yotate 8D (x >y 52) angle
D) otat o x(anae)
J) 7otato (angle
I5)1otate z(ongl)
l6)
Ex
in fraction Sevordt)
dloro
Thansihon 28
transform : tyanslate (to0 px /00 Px;
tiansiatiorbraosorm
3D
transtor m:tanslato
tanslation
tunnt to movi ng
Paotcular
Lyotato
3D On
transfom
:
,00 yl000 100
Pn 2, (io0 8dotata
sot. OS rotato ls
tyanstoom
tato o
on
sotato
bansto
m
:otato
byotate
XON hansto
ms
9otato
dog
dirction Clockwlso deg 5D
divocton
franstom
dog; (
no7otato
dog on Only
Yotato
olent
mo want
tho otato to
smovo fanstosm
on
tranda
Ctooy) z te
Aansttm
Oftsot Y on Move
translato
yiuoo7)
smovo
ofsot. On
X
FYanslato
Ct007) x
cbg agb Yaltos
has ShoD
ongtroch
nt one rnako Want
Groctngto
olomont fo1
SKEW
Out
200m
elomont
is
es ihon ,[Link]// (1.6 scoale tHansform
m
hovoY P
3
Scale z(15); Scalethanstorm
on
,y) Bdtranston
(X:&coti
tale (15),
> Scale
V transsorm
. On ’I.5), Scale
XC tanstorm
L5), C1.6, scalotranstoum
P
EXAMPLE!
Changs Hoye
no
(1,) Scalo
Valuo
dolutt
Örale
poopottg thoid
halah to Usod is
incvcase
SCnIE
EXOMDIE
CoUOR
numbon
alpha
- Combination % Should
Valuo
minimum digits
a-f
width
PE 25 px
bo -shad ou
I-indox
*An olarncnt oi th grocto Stonk
qoato
Sont cl an eloent with louoh
aluay'
ndo (likc Ovovlap) i want I-idoy
to
Dveilap. dotault Valuo Quto
Ex
P£
inolex inumbo
(+ oy) Numbors
Anination
jrom ainging
to
Ike passoqoa tain
kiod of
ewpross io n
it will work on pavty pat
Iis sBat ono paotcslar Whanovo e havo mt
point oh no point þolnts.
dyntay Croatton
oAnimation
to f Value;
Plopoyty
(or)
Qkeyfss
p:v;
ave
Bome proporiy
animation împ
To : idontifio
animation -name ;mp
1) Valuo
animaion -duvation :
9 : Valuo
dolay time (as)
) animation --itovatton-count ; Hou many
4) aniation
rimation - cizoction (linoar )
5)
animaton - timug 7nction
6) animatBon-file -modo jecqanc
shortharc pelopouty
9) animation -
3 onimation i name dunaton timing
dolay itovation want
-7unction
dioction
J animation - ramo
Rs mrpstant to apdy animotion h
tho olemont
@keytframs para
3
[Link] - dlurationi
’ Tino dunation eleent actioni
animothion- olavation :108
both haight oidti
Valuo o
FXOmpe
P$
dunation :
animotion-duxation 103-ae
:103
animaton - name : pata,a
alroatlontovahon count
wo tont to itovato tho aninotion
this paopouty
3(it Valuo Ttovato 8 tias onlu)
COunt -
fntinito ( will toxato onSofoito trro)
Jnple
P Para ;
onimatton - name :
animation - duvati bo 106bo
animation -itoration - count
;ininito
Eranpb
animaion -ramo: Para
animation -cunation: iD S
:infinite;
animation. itoraion -count aniotion
(oait for 28 ton
animation - delas :95; will Cart).
t tansition
Tangito0
tho oloront
Tiro gcn to tho
Sport on clemem)
(innp
trorsfon D6: (ime
transition Ds hoiqht slos
toositon -dunation 55
L both hoight coidg
tansiton -dolby
colas 3
Ly wail p happon
) lincaY
Ex
a-d: ss
infioito
a-l-C:
doay: Is,
a
a-l-5 aso
mode animation
) aninatino ll- eloment
ohon
astor it crds
Stavts -
(boforo if
playig
Di both) hayo Yaluas. 08L
Hovo
Dofautt Valuo
none
to
backwDIC
movo to
. botkuand
to both
3mDYO
Short harc propoxty
animation :
Pana 23 caso
13
nfinito altoxrata
doau loatbncourl
narme divecHon timig frton dioction ll
FJEX
modulo.
tslatyol bluako olayout hraua
accass
giving
5 d'splauy Slox ; Hs
tn ID (ohe dirontion
align to ito
itoms
flox
oY VaiS.
Xaxis
ike eithe
cte
desponsible cbpoc
WEBPGE
PESPONSI PIE
Sizo
olernent will align
SCYOOh
Bacoc on
medlum deviee
minimurr Syoen Sze)