Skip to content

Commit 453dca0

Browse files
authored
add animation if an image is in the viewport
1 parent 603fba5 commit 453dca0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,8 @@ const bodyBounderies = document.body.getBoundingClientRect();
526526
527527
528528
# Check if a node is in the viewport
529-
529+
bonus: add/remove animation depending if an image is in the viewport
530+
https://codepen.io/JSsnippets/pen/PoqrjEY
530531
```javascript
531532
const image = document.querySelector('.animate-me');
532533

0 commit comments

Comments
 (0)