0% found this document useful (0 votes)
7 views23 pages

Animation in Css

Animation in css

Uploaded by

Techni Hemanth
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views23 pages

Animation in Css

Animation in css

Uploaded by

Techni Hemanth
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

P P

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

space botuocn obmant bovdoy and


lts onton
Conton
lbrntont
8olid odk,
kordoy IP x

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

OTHERTHeT Ne HevE SoME

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

3) Rolativo Btaits paront

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

lot 50 PX Horo no chanoes

A
BSOUJTE

tongidlos ant oand


REAT1VE
consido panohi marqin
pavont as opX as

Abcoluto wll sharo not srao


tho Spaco to not
Spaco to
pleront. Qoment
EXAMPLE: Ingltre
P Parent

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

* bodoy -block - coidth s dofault Valeo

s dolault
* boxcor -bock - Shyle
Exarmple
hi
boyclo - block : 5 px solid dock

TRANSFORM

UDant to tansfov m

olomont Ono dlaco to anotho! pou


Transtor m dono

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

Shost ard propory


anSto
Ym nono tanstor m function,

RANSFORM YAUES

) Thans lato ( s4)


) Translato 3d (x>y3z)
3) Tranlato x (x)
4) Tyansato
Thanslate z(z)
6) Scale ( )

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)

18) skow v (agle)


TRONSISIT1ON
Timo poriod givcn to olonon!
make domo achon

Ex

00 don' gpocify this to


hansiion :28: doosn' Soe acton

in fraction Sevordt)
dloro

TRENSLATE Cno placo t


olononts
Thansfomirng
anotho paa

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

transto0m Skow (yo ceg


clog),
Skow X Co dog)
transfor m
X ais
Skow
Skew
transfo7m y ats
On
s Skew

CoUOR

yale-) (o- 255)


clirect blue
groe alphabrenspatany Op
Rool , alpha
Rab - Geon,blo,
Roc, fightoss
Rgba
HSI huo Saturaton
louost daske
DOY atuvation
ightnass hghost ohitonoss

numbon
alpha
- Combination % Should
Valuo
minimum digits
a-f

B0x-Shadow Rroparty olonont


to the
Shadow
nono
pofault Vaue bue color,
Voiiset
box - Shdow xoflot

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

inolex inumbo
(+ oy) Numbors

Zinde onls 0Tds n positiorod clor

(position .abeolute /tola tivo /ixcd /Stickou1) ard


ANIMATION
tto UsOY.
* Engago
Without hocing offoct Di tho olempnt to
Some action.
naking
* Aninotion olono

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

from Poroppty :Valuo,

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

aniation - namo name


Slontifiors.
Exampla
animatiorn -name : Pana;

@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

loninahon - daby ' Hmo to,start tho ani notion


tako otoncs thon
basod on &tonds
npton
to happon
(ox)wait Some timo
start animation
tocaosthoas
animation dolay
Valuo

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

tho hansiton -imug- fnction Valuo;


inoan
Qas2--ut
0aseOut
Ex Caso colouw stavt thon ast slew end
Case -ini low Stavt
Ease. Out dlow encd
Caso -in -out sloUw Btaat Blow o

Qse eas0 - tn -out both axo bclmo


linoay Samo pecc thought dinocion.
trangition -olunation s animation duraton
tvansition - dalauy & anination -dolay
-tirirg- junctoncs animahon - tirmig juncton.
transi ion

B) aniation - timig- unchon


dpod unctioning on alanmont

Horo havo Vauuo8


) Qaso

) lincaY
Ex

a-d: ss
infioito
a-l-C:
doay: Is,
a
a-l-5 aso

dioctioni happen diroction


Animaton -
5) Should
Animation
altorrato
forond, backtord Value.
havo Sorw0rdscinection
Hore
Value backcod dncction
dofault
#noumal
HOVOY6e’ animation backword.
, thoh forand,
forund finst
fst 9 then
gltevrato backuad
attorrato-Yevorse

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

Coantornatialty) ouYcomptto 1202

medlum deviee
minimurr Syoen Sze)

You might also like