pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/javascript-tutorial/en.javascript.info/pull/3944/files

ubassets.com/assets/primer-primitives-10bf9dd67e3d70bd.css" /> feat: edit css-animations article and task en by front42 · Pull Request #3944 · javascript-tutorial/en.javascript.info · GitHub
Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,13 @@
transform: translateX(-50%) translateY(-50%);
background-color: red;
border-radius: 50%;

width: 200px;
height: 200px;
top: 150px;
left: 150px;
}
</style>
</head>

<body>

<div class="circle"></div>
<button onclick="showCircle(150, 150, 100)">showCircle(150, 150, 100)</button>

</body>
</html>
8 changes: 4 additions & 4 deletions 7-animation/2-css-animations/article.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ The CSS `transition` is based on that curve:

...And how can we show a train slowing down?

We can use another Bezier curve: `cubic-bezier(0.0, 0.5, 0.5 ,1.0)`.
We can use another Bezier curve: `cubic-bezier(0.0, 0.5, 0.5, 1.0)`.

The graph:

Expand All @@ -190,7 +190,7 @@ CSS:
```css
.train {
left: 0;
transition: left 5s cubic-bezier(0, .5, .5, 1);
transition: left 5s cubic-bezier(0, 0.5, 0.5, 1);
/* click on a train sets left to 450px, thus triggering the animation */
}
```
Expand All @@ -214,7 +214,7 @@ So we could use `ease-out` for our slowing down train:
.train {
left: 0;
transition: left 5s ease-out;
/* same as transition: left 5s cubic-bezier(0, .5, .5, 1); */
/* same as transition: left 5s cubic-bezier(0, 0.5, 0.5, 1); */
}
```

Expand All @@ -229,7 +229,7 @@ In the example below the animation code is:
```css
.train {
left: 100px;
transition: left 5s cubic-bezier(.5, -1, .5, 2);
transition: left 5s cubic-bezier(0.5, -1, 0.5, 2);
/* click on a train sets left to 450px */
}
```
Expand Down
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy