CodeLab
Tutorials For Everyone
Run
Learn CSS
<!DOCTYPE html> <html> <head> <style> #container { margin: auto; height: 150px; width: 300px; padding: 10px; background: #333; text-align: center; color: #fff; box-shadow: 0 0 10px 0 #888; } @keyframes anim { 50% { translate: -30px 50px;} } #child { padding: 30px; background-color: red; white-space: pre; animation: anim 10s infinite; font-size: 20px; width: 150px; height: 20px; opacity: 0.8; } #child-original { padding: 30px; background-color: blue; white-space: pre; font-size: 20px; position: absolute; width: 150px; height: 20px; } </style> </head> <body> <h1>Animatable 'translate' Property</h1> <hr> <p>Experience the changing value of the translate property.<p> <div id="container">Translate Property <div id="child-original">0 1 2 3 4 5 6 7 8 9</div> <div id="child">0 1 2 3 4 5 6 7 8 9</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