Skip to content

Commit

Permalink
Update script.js
Browse files Browse the repository at this point in the history
  • Loading branch information
EuJinnLucaShow committed Jun 4, 2023
1 parent 0b8e295 commit 965ae1f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ function renderGallery(images) {
.join('');

gallery.insertAdjacentHTML('beforeend', markup);

// Цей код дозволяє автоматично прокручувати сторінку на висоту 2 карток галереї, коли вона завантажується
const { height: cardHeight } = document
.querySelector('.gallery')
Expand Down

0 comments on commit 965ae1f

Please sign in to comment.