Skip to content

How can i control shadow dynamicly ? #56

Discussion options

You must be logged in to vote

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.)

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by mertthesamael
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants