cancel
Showing results for 
Search instead for 
Did you mean: 

Scale Image when moving in a scrollwheel

BNuyt.1
Associate

Hi,

I have a horizontal scrollwheel where i want to scale the item when it is animating to the next position. I am a bit lost how to start with this. I had a look at move animator but that doesn't seems like the proper way. I need a hook from the scrollwheel animator I assume. I created a selected style where the scale is 1 en the regular style 0.5 but that doesn't look good. I am using a STM32G0 + 128x128 grayscale oled display

1 ACCEPTED SOLUTION

Accepted Solutions
Romain DIELEMAN
ST Employee

Hi,

I would recommend looking at the tutorial 4 which explains how to create a scroll wheel with a custom behavior. Instead of changing the x coordinates you would change the scale of the images.

/Romain

View solution in original post

2 REPLIES 2
Romain DIELEMAN
ST Employee

Hi,

I would recommend looking at the tutorial 4 which explains how to create a scroll wheel with a custom behavior. Instead of changing the x coordinates you would change the scale of the images.

/Romain

BNuyt.1
Associate

Thanks! I've read that article earlier in my study. Seems like i forgot it. Got it working now.