Back to top button (smooth)

Permalink Browser Info Environment
Hi,

I wanted to add a button in the menu with the logo of the website. When you klik the button you go back to the top of the page. But i want it to become smooth, like the navigation to different slides, instead of just popping to the top.

I currently have an image block with an external URL : #slide1

Checkhttp://grafomantestsite2.be/ for my example.

Type: Pre-Sale
Status: In Progress
grafoman
View Replies:
jordif replied on at Permalink Reply
jordif
Hi,

you only need to apply the class "goto-slide" to the link to make it scroll smoothly to a slide. This is explained in the "Tips" section of the documentation:

https://www.concrete5.org/marketplace/themes/long-story-short1/tips-...


I think you can not add a class to the link if you're using an Image block, so I'd recommend inserting the image using a Content block (this way you can edit the HTML code and add the class directly).

(By the way, the webiste design is starting to look very nice)

Regards,

Jordi
grafoman replied on at Permalink Reply
grafoman
Works! Thank You

Sorry for all the questions
jordif replied on at Permalink Reply
jordif
No worries! Glad it's working.

Jordi

concrete5 Environment Information

Not available

Browser User-Agent String

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.65 Safari/537.36

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.