Welcome Dialog

Welcome to the Community!

We have a brand new look! Take a tour with us and explore the latest updates on Adobe Support Community.


Script to add particular swatch as roll over effect to a button

Explorer ,
Mar 09, 2021 Mar 09, 2021

Copy link to clipboard

Copied

Hello everyone,

 

I have to add roll over effect to alot of buttons. And the roll effect includes adding certain swatch and change its opacity to 25%.

 

Ideally, effect of any simple greyish tint (with gradient) when cursor hover over would work. But since I couldn't find anything built-in, I created a new swatch of grey color with gradient and then changing it opacity to 25% works perfect for me.

 

Now I need script to add that swatch with certain opacity as roll over effect to buttons.

 

Thanks in advance!

TOPICS
Scripting

Views

77

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Adobe Community Professional , Mar 09, 2021 Mar 09, 2021
I found this partial answer: https://community.adobe.com/t5/indesign/js-buttons-make-states-rollover-and-click-available/td-p/2714849 But it got me to thinking that it should be included in an Object Style (as a future feature enhancement).

Likes

Translate

Translate
Adobe Community Professional ,
Mar 09, 2021 Mar 09, 2021

Copy link to clipboard

Copied

LATEST

I found this partial answer:

https://community.adobe.com/t5/indesign/js-buttons-make-states-rollover-and-click-available/td-p/271...

But it got me to thinking that it should be included in an Object Style (as a future feature enhancement).

Mike Witherell

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines