We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

top button to bottom button click motion

top button to bottom button click motion

shop22dash
Excursionist
22 0 4
Untitled design (56).png

when clicking the top button i want it to take the user down to the white button in a speed motion.

Replies 5 (5)

Darshan17
Shopify Partner
68 5 9

Hi @shop22dash , 

Can you please share your store url and some more detail so that I can look into this. 

Thanks!

If this fixed your issue, a Like and marking it as a Solution would mean a lot!
Shopify Developer | Helping eCommerce Stores Grow – cmsMinds (Shopify Partner)
Need help improving your Shopify store to stay ahead of market trends or need expert support?
 Connect with me at ujjawal@cmsminds.com

websensepro
Shopify Partner
2144 268 319

Hi @shop22dash  , kindly provide your store URL please and if it is password protected, please share the password as well. Thanks

Need a Shopify developer? Hire us at WebSensePro For Shopify Design Changes/Coding
For Free Tutorials Subscribe to our youtube
Get More Sales Using Big Bulk Discount APP
Create Your Shopify Store For Just 1$/Month
Get More Sales Using Big Bulk Discount APP
TheScriptFlow_
Shopify Partner
848 63 106

Hey @websensepro,

I would like to know why Shopify community remove the "Private Message" button? Or is this not showing from my side only?

TheScriptFlow_0-1749728789610.png

 

- Need a Shopify Specialist? Chat on WhatsApp +923036471248 Or Email at info@thescriptflow.com

- Boost Your Sales with Affiliate Marketing - UpPromote: Affiliate & Referral


- If my solution was helpful, mark it as a solution and hit the like button!

swym
Trailblazer
217 46 94

Hello @shop22dash!

 

We can easily solve this issue by using a simple event listener and the scrollTo() method. Please refer to the steps below to achieve this end-to-end. 

 

1. Open the Code Editor for the theme where you would like to apply the modifications as directed in the screenshot below. 

 

swym_0-1749730688788.png

 

2. Let’s create a new snippet to add these modifications. We suggest using a snippet so you can easily add or remove it as needed. The screenshot below shows how to create a new snippet.

swym_1-1749730714846.png

 

3. Now, inside this file, paste in the code below: 

 

<script>
  const redirectButton = document.getElementById('redirect-button-id');
  const targetButton = document.getElementById('target-button-id');
  const targetButtonTop = targetButton.offsetTop;
  
  redirectButton.addEventListener("click",()=>{
    window.scrollTo({top: targetButtonTop, behavior: 'smooth'})
  })
</script>

 

 

Note: You would need to update the ids, or selectors for your store’s buttons/elements. In the example code shared above, the targetButton is the element I am taking the user to when the redirectButton is clicked.

 

4. Finally, let's render this file inside your theme layout file just before the closing </body> tag. Screenshot below for reference.

swym_2-1749730767622.png

 

Once saved, let’s go to the storefront. This is what it should now behave like:

 

swym_3-1749730795648.gif

 

If my response helped you, please consider giving it a like (👍) and marking it as an accepted solution if it resolved your issue. Your feedback helps other community members with similar questions. 

 

Thank you!

 

Regards, 

Aaryan from Swym

- Appreciate the assistance. Show your approval with a Like! And when your question finds its answer, seal the deal by marking it as an Accepted Solution!
- Our Solutions: Wishlist Plus | Swym Back in Stock Alerts | Swym Gift Lists and Registries

Dan-From-Ryviu
Shopify Partner
12073 2359 2539

Hi @shop22dash 

You can do that by add href of top button is ID of section that contains bottom button

- Helpful? Like & Accept solution!
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.