/    Sign up×
Community /Pin to ProfileBookmark

Hi, I have those tow galleries. And When you click on a small img, the big img gets replaced with the img you clicked on. The problem is that it also has a text and the small imgs are off-screen on MOBILE. It feels kinda bad for the user experience and I don’t know what to do to make it feel better.
I was thinking to add a scroll element to scroll up to the big img when you click on the small one but I don’t how to do that in JS but also I don’t know how to cancel that effect on desktop.

Here is the page: https://relaxed-swirles-9b73a7.netlify.com/design.html

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @codyhill spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.12,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...