up
This commit is contained in:
parent
4ae129054e
commit
ab9ab64bd5
476 changed files with 3370 additions and 532 deletions
16
5-animation/2-css-transitions/digits.view/index.html
Normal file
16
5-animation/2-css-transitions/digits.view/index.html
Normal file
|
@ -0,0 +1,16 @@
|
|||
<!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');
|
||||
};
|
12
5-animation/2-css-transitions/digits.view/style.css
Normal file
12
5-animation/2-css-transitions/digits.view/style.css
Normal file
|
@ -0,0 +1,12 @@
|
|||
#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