Ignore Pointer (Cursor) Events

UI & UX

</ head>

<!-- Ignore Cursor Events --> 
<style>
.your-class-name {
	pointer-events: none;
}
</style>

</ body>

HTML/Embed

Author
N/A
Published
May 21, 2020

How to use:

Simply copy & paste the code into the </ head> custom code section of your page settings or an embed at the top of the page. Replace ".your-class-name" with your own meaningful class name like ".ignore-cursor" for example.

Then you can add that class to any element in your Webflow project that needs it. See the demo for example. You'll notice the top gif embed changes when you hover over it. It shows related gifs and allows you to click on it. The same embed below has our new class on it which disables any cursor event for that element. You can't click on it and it doesn't react to any hover state either.

Another cool thing about this bit of code is if you have an element on top of another but needed the bottom element to be clickable or interactive with the cursor (pointer), then you can still do so. It allows the cursor (pointer) to pass through that element on top to the element below.

Tutorial Coming Soon!

This one line of CSS code will ignore any cursor (pointer) event such as clicks or hovers etc.This can be useful if you have a video or a gif that is not necessary for your users to interact with.

Clone Project
Documentation
Author:
Built by
Built with
For the best experience

Please switch to desktop to view the content.

Back Home
Thank you! Your submission has been received!
Close Form
Oops! Something went wrong while submitting the form.
Become a Contributor