Comments (6)
Actually, that can be fixed by adding the -webkit-mask-image
property, as referenced here: https://gist.github.com/ayamflow/b602ab436ac9f05660d9c15190f4fd7b
from react-parallax-tilt.
Hey @LucidNinja, thanks for the PR, it looks great, I already merged it and created new release 1.5.0
🚀
from react-parallax-tilt.
Actually, even if I add the following:
.glare-wrapper {
border-radius: 3rem;
}
There seems to be a bug in Safari both on desktop and iOS that causes square corners to show momentarily, before disappearing. Not sure why this is? I'll have a look into it further to see if a CSS bug?
from react-parallax-tilt.
Hi @LucidNinja thanks for the detailed bug report and provided possible solution(s) 🚀
As you mentioned this can be added as css prop to .glare-wrapper
class, but I would prefer the second option you proposed, passing it as a GlareBorderRadius
prop?
I think if we add the prop to styleGlareWrapper
object in /src/features/glare/Glare.ts
it should work.
Would you like to take a stab at this and create PR?
from react-parallax-tilt.
Ok I can give it a go!
from react-parallax-tilt.
Hey @mkosir - adding the GlareBorderRadius prop to the styleGlareWrapper would have required me to change the constructor (from what I can see), so I created a private method inside Glare.tx and ran it during the render method. Not sure if that's the best way to tackle it, but it works. Let me know if you have any feedback. See #28
from react-parallax-tilt.
Related Issues (18)
- Only one Tilt works at a time HOT 2
- gyroscope not working on safari HOT 2
- Don't log Device Orientation as an error HOT 3
- Custom transitionSpeed value cancelled after certain time or mousevents HOT 2
- Glare prevents clicks HOT 2
- glareReverse not working HOT 2
- Glare on rectangle shape HOT 2
- Component dropping effects after animating in HOT 7
- Cannot read property 'style' of null HOT 7
- Full page listening? HOT 1
- If the functional component re-render it takes random position HOT 2
- Missing type declarations HOT 2
- How do I make initial position is tilted to signal affordance? HOT 3
- Unable to use on node v17/v18 HOT 2
- Uncaught runtime errors HOT 2
- Tilt causes crash in Next.js HOT 3
- Initial tilt doesn't work (tilts to a random XY on refresh) HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-parallax-tilt.