Webflow sync, pageviews & more.
NEW

What are the HTML, CSS, and jQuery code snippets used to create full-page sections in Webflow?

TL;DR
  • Create multiple sections in Webflow and assign each a class like full-page-section with height: 100vh.
  • Add unique IDs to sections and use anchors or buttons linking to them.
  • Optionally, add jQuery for smooth scrolling and apply CSS scroll snapping for seamless section transitions.

To create full-page sections in Webflow using HTML, CSS, and jQuery, you replicate the behavior where each content section takes up 100% of the viewport height and users can scroll or transition between them.

1. HTML Structure for Full-Page Sections

  • Inside Webflow, create multiple Section elements (div blocks set as “Section”).
  • Assign each section a class like full-page-section using the class selector in the Style panel.
  • Example structure inside Webflow (visually arranged, not raw code):
  • Section 1: Class = full-page-section
  • Section 2: Class = full-page-section
  • Section 3: Class = full-page-section

2. CSS for Full-Page Height

Apply styling to make each section fill the entire viewport.

  • Go to the Style Panel and edit the full-page-section class:
  • Height: 100vh
  • Width: 100%
  • Optionally set overflow to hidden and position to relative if needed for animations or layering.

This ensures each section takes up the full height of the browser viewport.

3. Optional — Smooth Scroll with jQuery

If you want smooth transitions when navigating between sections via anchor links or buttons:

  • Use Webflow’s custom code (go to Page Settings > Custom Code > Footer).
  • Insert the following jQuery snippet to enable smooth scrolling on anchor links pointing to section IDs.
$('a[href^="#"]').on('click', function(event) {  var target = $(this.getAttribute('href'));  if( target.length ) {    event.preventDefault();    $('html, body').stop().animate({      scrollTop: target.offset().top    }, 1000);  }});
  • Each section should have a unique ID (e.g., section1, section2).
  • Buttons/links should use a link to section like #section1.

4. jQuery Scroll Snapping Alternative (Optional)

For an automated full-screen snap between sections, you can use Webflow-native settings or custom jQuery/plugins like fullPage.js. Webflow doesn’t support snapping natively unless you manually configure scrolling or use CSS scroll-snap properties.

To implement scroll snapping with CSS:

  • Apply the following to the Body or a wrapper div:
  • Scroll Behavior: smooth
  • Overflow-Y: scroll
  • Height: 100vh
  • Scroll Snap Type: y mandatory

Then apply to each section:

  • Scroll Snap Align: start

This can be done via the Styles panel using Custom CSS properties.

Summary

To create full-page sections in Webflow:

  • Use sections styled with height: 100vh.
  • Add unique IDs for navigation.
  • Use optional jQuery for smooth anchor scrolling.
  • Apply scroll snapping with CSS for smoother transitions.

No raw HTML is needed; all elements are created using Webflow’s visual designer with small jQuery/CSS enhancements for interaction.

Rate this answer

Other Webflow Questions