CodeLab
Tutorials For Everyone
Run
Learn CSS
<!DOCTYPE html> <html> <head> <style> #container { position: relative; margin: auto; height: 150px; width: 250px; padding: 10px; background: #333; text-align: center; animation: anim 5s infinite; perspective: 300px; color: #fff; box-shadow: 0 0 10px 0 #888; } @keyframes anim { 50% {perspective: 200px;} } #child { padding: 50px; position: absolute; background-color: red; transform: rotateX(45deg); border-radius: 10px; } </style> </head> <body> <h1>Animatable 'perspective' Property</h1> <hr> <p>Experience the changing perspective of the inner child container.<p> <div id="container">Perspective Property <div id="child">Think that you are looking down on a wall. See what happens when you gradually change the perspective!</div> </div> </body> </html>
Editor Commands
Ctrl
F
Find
Ctrl
G
Find Next
Ctrl
⇧
G
Find Previous
Ctrl
⇧
F
Find & Replace
Ctrl
]
Indent Code Right
Ctrl
[
Indent Code Left
⇧
Tab
Auto Indent Code
Ctrl
/
Line Comment
Ctrl
Alt
/
Block Comment
TutsInsider Actions
Alt
S
Run Code
Ctrl
C
Copy Editor Code
Ctrl
A
Select All Editor Code
Ctrl
S
Save/Download
Ctrl
Alt
X
Rotate
Ctrl
Alt
T
Switch Theme
Ctrl
⇧
C
Open Console
Esc
Close Console