0
Answered

Highlight the selected .koru-button snapshot list item

Mark Horgan 10 months ago updated by Vitaly Ovchinnikov 10 months ago 1

I have been following https://boxshot.com/koru/tutorials/tips/snapshot-buttons/ to customise the snapshot buttons using CSS. I have tried using both :active and :hover for changing the colours of the snapshot buttons. 

But is it possible to highlight the last selected snapshot? i.e. to show the user that they are on a specific snapshot? 

Answer

Answer
Answered

Hello Mark,


I afraid there is no way to get the current snapshot out of Koru. Especially providing that you can move the camera manually and move the shapes with JavaScript, there is no way for Koru to track if the snapshot is current or not.

On the other hand you still have JavaScript around, so you can easily remember the snapshot you clicked by adding a special class or attribute to its name and then highlight it by that attribute/class with CSS. This doesn't sound too complicated for me, just like another HTML/CSS menu, there are plenty of example around.

Cheers!

Answer
Answered

Hello Mark,


I afraid there is no way to get the current snapshot out of Koru. Especially providing that you can move the camera manually and move the shapes with JavaScript, there is no way for Koru to track if the snapshot is current or not.

On the other hand you still have JavaScript around, so you can easily remember the snapshot you clicked by adding a special class or attribute to its name and then highlight it by that attribute/class with CSS. This doesn't sound too complicated for me, just like another HTML/CSS menu, there are plenty of example around.

Cheers!