Nová ukázka
Reset
Načíst z URL
Uložit a získat odkaz
Vztahuje se k…
Nevyplňujte
Napiště „nejsem robot“
▶
Přepnout zobrazení
Výsledek
<div class="hodiny"> <div class="rucicka"></div> </div>
HTML
Autoformát
Standardní režim
Mobilní zobrazení
@keyframes rucicka { to {transform: rotate(360deg)} } @-webkit-keyframes rucicka { to {-webkit-transform: rotate(360deg)} } .hodiny {border-radius: 50%; border: 4px solid #0D6AB7; width: 100px; height: 100px; position: relative} .rucicka {background: #DA3F94; width: 40px; height: 4px; position: absolute; top: 50%; left: 50%; margin-top: -2px; margin-left: -40px; -webkit-animation: rucicka 10s infinite linear; animation: rucicka 10s infinite linear; -webkit-transform-origin: right center; transform-origin: right center;} .rucicka:before {content: ""; position: absolute; background: #1081DD; border-radius: 50%; width: 8px; height: 8px; right: -2px; top: -2px} .rucicka:after {content: ""; border: 4px solid transparent; border-right-color: #DA3F94; position: absolute; left: -8px; top: -2px; width: 10; height: 0;}
CSS
Autoformát
CSS reset
Až na konci
J
ava
S
cript
Autoformát
jQuery
Umístění JS
window.onload
</head>
</body>