Currently, this video doesn't feature the visited state as it was recorded before the feature was released.

To add interactivity to your elements, you can change the way they look and behave in different states. As you're styling an element, clicking the States menu lets you select between the various states, like hover and focused, you can access and style.

Webflow states menu
States

States

There are four states that you can set for any element:

  • None
  • Hover
  • Pressed
  • Focused
  • Visited
Good to know
You can also style the placeholder state of form fields. Learn more about styling forms and the placeholder state.
You can also style the current state of link. See below.

None state

The None state is the default state of elements.

 

Hover state

The hover state shows when you hover your mouse pointer on an element. It’s not possible to hover on most touch devices so be aware of this when designing for smaller breakpoints.

 

Pressed state

The pressed or active state is the state that shows when you click or press on an element. This state inherits styles from the hover state as pressed is actually a state of the hover state.

 

Focused state

It’s possible to focus on certain elements, like input fields in a form, before activating them by pressing the TAB ↹ key on the keyboard. The focused state emulates this state and is often styled for input fields and links.

 

Visited state

The visited state is the state of a link that's been visited. This state inherits styles from the none state.

Styling states

When you select a state from the states menu, a green state class, also called pseudo-class, will appear at the end of the selector field. This indicates that you are now styling that state of your element.

Styling states in Webflow

You can make any number of styling choices. The styling changes you make here are what users will see when they interact with this element.

Good to know
For the visited state, you can only style the text color, the background color, and the border color. Background color will only appear if it is already set in a different state.

All states inherit styles from the none state. Pressed also inherits styles from the hover state. You can see from where styles are being inherited using the inheritance menu on the right of the selector field.

Styling states in Webflow
The inheritance menu shows that the pressed state is inheriting values from the hover state.

Whatever state you're in, the changes you make will be visible on the canvas until you deselect or otherwise leave the state.

After you have added styles to a state and open the states menu, you will see blue circles indicating that there are local styles on that state. Orange circles indicate that there are inherited styles.

Styling states in Webflow

When you’ve finished styling your states, you can go back to the default none state by doing any of the following:

  • Select none from the States menu
  • Press the green checkmark icon next to the States menu
  • Press ESC on the keyboard (this also deselects the current element)
  • Select a different element

Current state

The Current state is automatically added to the class or all links tag of a selected link element when this element is linked to the current page, section, or tab.

Current Link

To access the Current state of any link block, text linkbutton, nav link:

  • Select your link element and press D to open the link settings
  • Select the page option and choose the current page from the dropdown (if your link is on the home page, select the home page)
  • Press S to go to the style panel. You will see that the green current state is activated in the selector field if you've applied a class to your link. If not, select "all links" from the selector dropdown and the current state will be applied as well.

You can also select the page section option in the link settings. The current state will appear in the selector field for that element when you scroll to that section of the page. This is useful for styling buttons or links that are fixed as you scroll.

Styling the Currrent state in Webflow
Pro tip
Style the current state of the all links tag if you want the same current state styling for all your links.
If you want to have a specific current class styling for a number of links and buttons on your site, assign a class to these link elements before styling the current class.
Good to know
After you style the current state, you can update the link settings and link your button and link elements to any other pages or page sections.

Current Tab

To access the Current state for Tab Links, select the Tab Link for the current visible tab and add a class. The Current state will automatically appear. Learn more about styling current Tab Links.

Styling the Current state

The Current state inherits all styles from the default state. When you add custom styling on the Current state, it will reflect how your link element looks when a user is on that state..

There are several ways to remove the Current state, when you want to style the default state:

  • Select the default class in the Inheritance menu
Styling states in Webflow
  • Temporarily remove the link to the current page/section.
  • Duplicate the element, remove the page/section settings, edit the class and then delete the duplicate element when you’re done.