Ignore Pointer (Cursor) Events

</ head>

<!-- Ignore Cursor Events --> 
<style>
  /* disable any cursor events e.g. click & hover */
  .your-class-name {
    pointer-events: none;
  }
</style>

</ body>

HTML/Embed

<!-- Ignore Cursor Events --> 
<style>
  /* disable any cursor events e.g. click & hover */
  .your-class-name {
    pointer-events: none;
  }
</style>
Only tabs with a " " have code.
Only tabs with a " " have code.
Only tabs with a " " have code.
Only tabs with a " " have code.
If you have already pasted this code into your project then you can skip this. If you haven't, and it's your first time using CodeCrumbs, then copy this code and navigate to your sites global settings > Custom Code tab > paste it into the <head> (first custom code block). It just needs to exist once.
Author
N/A
Updated on
May 8, 2024

How to use:

Unlock more with PRO

Want to learn how to use this Crumb? Unlock detailed documentation, video tutorials, comments & support!

Upgrade to Pro

Unlock more with PRO

Want to learn how to use this Crumb? Unlock detailed documentation, video tutorials, comments & support!

Upgrade to Pro

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!

Check Browser Support

Interactive Table

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:
Status:
Deprecated
New
Updated
Latest Version:
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