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

Animating the menu on scroll

In our current version of the SecondPlate landing page, the top menu is only visible and accessible if you're at the very top of the page. Once you scroll, the menu is out of reach.

But what if we wanted the menu to always be visible so that it's in easy reach, regardless of where on the page the visitor is? We could achieve this by fixing the menu to the top of the page so that it sticks there as you scroll. This could be handy, but making the menu always visible may take up too much valuable attention and real estate, especially on smaller screens such as mobile phones.

This is where a simple interaction could come to the rescue.

What we can do is hide the menu when the user scrolls down the page and make it reappear whenever the user begins to scroll back up. This is a type of anticipatory design; we show elements to users only when we anticipate that they might want to see them.

Let's begin by making the menu fixed to the...

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