/    Sign up×
Community /Pin to ProfileBookmark

"Return to Top" icon that follows scroll

I’m not sure which section I should put this in, so I’ll put it here.
I went to a website today that has an icon that when clicked on will return the user back to the top of the page. This icon will follow the page even while scrolling down.
I was wondering which code this is written in and if I’m able to make one for my website.

Thanks in advance.

to post a comment
Full-stack Developer

3 Comments(s)

Copy linkTweet thisAlerts:
@Major_PayneJul 05.2007 — You can adapt this script for what you want:

Floating Menu

There are others available too.

Ron
Copy linkTweet thisAlerts:
@anothenauthorJul 05.2007 — Thanks Ron.

It works w/ html page, but I can't get it to work w/ php page. But that's okay. I'm gonna tinker with this a bit.
Copy linkTweet thisAlerts:
@Major_PayneJul 05.2007 — Just Google for Floating Menu and you might run across one that is more adaptable.

Ron
×

Success!

Help @anothen 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.21,
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,
)...