Skip to main content
BNuyt.1
Associate
March 18, 2023
Solved

Scale Image when moving in a scrollwheel

  • March 18, 2023
  • 2 replies
  • 1391 views

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

This topic has been closed for replies.
Best answer by Romain DIELEMAN

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

2 replies

Romain DIELEMAN
Romain DIELEMANBest answer
ST Employee
March 20, 2023

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
BNuyt.1Author
Associate
March 20, 2023

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