linkElement problem new class

2 replies · opened May 18, 2020

FflymacMay 18, 2020

Hello,

I want to add transition effect to the "my-class" class: Home

In functions.js I added my-class in linkElement:

linkElement: 'body:not(.device-md):not(.device-sm):not(.device-xs) #primary-menu:not(.on-click) ul li a:not([target="_blank"]):not([href*="#"]):not([data-lightbox]):not([href^="mailto"]):not([href^="tel"]):not([href^="sms"]):not([href^="call"]) .my-clas',

all transitions stop working.

but if in linkElement I only enter my class:
linkElement: '.my-class',

the transition to the "my-class" class works fine.

I have done many tests, many combinations, but always the same problem.

thanks for any help

SSemicolon WebSTAFFMay 19, 2020

Hello,

You can consider using this code:


linkElement: 'body:not(.device-md):not(.device-sm):not(.device-xs) #primary-menu:not(.on-click) ul li a:not([target="_blank"]):not([href*="#"]):not([data-lightbox]):not([href^="mailto"]):not([href^="tel"]):not([href^="sms"]):not([href^="call"]),.my-class',

Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

FflymacMay 19, 2020

Hello,
I understood, the problem was the missing comma, now it works very well, thanks!

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard