renovations
This commit is contained in:
parent
05d35d0d16
commit
951cf3f2ec
152 changed files with 2527 additions and 2179 deletions
13
5-animation/2-css-transitions/digits.view/index.html
Normal file
13
5-animation/2-css-transitions/digits.view/index.html
Normal file
|
@ -0,0 +1,13 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<link rel="stylesheet" href="style.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div id="digit"><span id="stripe">0123456789</span></div>
|
||||
|
||||
<script src="script.js"></script>
|
||||
</body>
|
||||
</html>
|
3
5-animation/2-css-transitions/digits.view/script.js
Normal file
3
5-animation/2-css-transitions/digits.view/script.js
Normal file
|
@ -0,0 +1,3 @@
|
|||
stripe.onclick = function() {
|
||||
stripe.classList.add('animate');
|
||||
};
|
13
5-animation/2-css-transitions/digits.view/style.css
Normal file
13
5-animation/2-css-transitions/digits.view/style.css
Normal file
|
@ -0,0 +1,13 @@
|
|||
|
||||
#digit {
|
||||
width: .5em;
|
||||
overflow: hidden;
|
||||
font: 32px "Courier New", monospace;
|
||||
}
|
||||
|
||||
#stripe.animate {
|
||||
margin-left: -174px;
|
||||
transition-property: margin-left;
|
||||
transition-duration: 9s;
|
||||
transition-timing-function: linear;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue