Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Contents blur on tilt element once mouse-leave #40

Open
elliottmangham opened this issue Jan 4, 2018 · 2 comments
Open

Contents blur on tilt element once mouse-leave #40

elliottmangham opened this issue Jan 4, 2018 · 2 comments

Comments

@elliottmangham
Copy link

elliottmangham commented Jan 4, 2018

Hello,

Tilt is working very well, although I have came across an issue where when you move your mouse off a tilt element with scaling enabled, the contents blur afterwards.

See below a screenshot.

Here you can see the content in the box in the middle is blurry, as opposed the content on the right. Each of these boxes are separate tilt elements, each with scaling enabled.

  • The left is during hovered state.
  • The middle is a result of hovering over the element and then moving the mouse off (the issue is the content is blurry)
  • The right hasn't had any interaction yet.

screen shot 2018-01-04 at 09 30 58

Thanks in advance.

Other-than this issue, great job with tilt.js. I love it.

@elliottmangham
Copy link
Author

After some more investigation, I've noticed it is caused by transform-style: preserve-3d, although this is required for the parallax effect.

@gijsroge do you know of any other solution?

@curthard89
Copy link

Bit late to the party, but Ive just added a listener to mouse over and mouse out to add a class to the element being tilted, upon enter, apply the z transforms, on exit, let it be removed. This keeps text clear and readable when not being tilted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants