Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Webflow by Example

You're reading from   Webflow by Example Design, build, and publish modern websites without writing code

Arrow left icon
Product type Paperback
Published in Dec 2021
Publisher Packt
ISBN-13 9781801075398
Length 356 pages
Edition 1st Edition
Tools
Concepts
Arrow right icon
Author (1):
Arrow left icon
Ali Rushdan Tariq Ali Rushdan Tariq
Author Profile Icon Ali Rushdan Tariq
Ali Rushdan Tariq
Arrow right icon
View More author details
Toc

Table of Contents (20) Chapters Close

Preface 1. Section 1: Getting Started with Webflow
2. Chapter 1: Why Webflow FREE CHAPTER 3. Chapter 2: The Web in a Nutshell 4. Chapter 3: Setting Up Your First Project 5. Section 2: Building a Mobile Responsive Landing Page with Webflow
6. Chapter 4: Building Above the Fold 7. Chapter 5: Building the Rest of the Body 8. Chapter 6: Making It Responsive 9. Chapter 7: Introduction to Interactions and Animations 10. Chapter 8: Advanced Interactions 11. Section 3: Building a Dynamic Website with Webflow CMS
12. Chapter 9: Getting Started with Webflow CMS 13. Chapter 10: Creating Your First CMS Project 14. Chapter 11: Creating Collection Pages 15. Chapter 12: Managing CMS Projects 16. Section 4: Additional Topics
17. Chapter 13: Publishing Projects on the Web 18. Chapter 14: Using Webflow Editor to Update Websites 19. Other Books You May Enjoy

Creating a custom floating button

A floating button is simply a button that floats above the page in a fixed position while the page is scrolling. Why would we want this?

In our case, we're going to create a button that quickly takes the user to the top of the page rather than having them manually scroll back up. Many websites make use of something like this as it saves the user's time and effort to scroll through long pages.

Our action plan is going to look like this:

  1. Create the Back to top button and set its Position to Fixed.
  2. When the user clicks on the button, it will take the user back to the top of the page.
  3. Hide the button when the user is at the top of the page.
  4. Show the button when the user scrolls down to a certain position on the page.
  5. When the user hovers over the button, make it react in some way so that it stands out.

The following diagram shows the floating button we'll be creating, along with what the hover effect...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image