How can i control shadow dynamicly ? #56
-
Hey there, i have a problem about shadows. I want to make dynmaic shadow on parent div that follows tilted element. I cant find any solution for this one, when i give drop or box shadow, it appears like highlight, as expected. Thanks for help already. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I find it this way, Got the values from onMove (x and y axis degree) Giving inline css to element and set the shadow X and X equal to onMove X and X angles (Multiplying the value of angle by 0.1 works fine.) |
Beta Was this translation helpful? Give feedback.
-
Hey @mertthesamael, thanks for describing your use case and solution for it 🚀 |
Beta Was this translation helpful? Give feedback.
I find it this way,
Got the values from onMove (x and y axis degree)
Giving inline css to element and set the shadow X and X equal to onMove X and X angles (Multiplying the value of angle by 0.1 works fine.)