parallax-effect | ️ Parallax effect in javascript using face | Computer Vision library
kandi X-RAY | parallax-effect Summary
kandi X-RAY | parallax-effect Summary
️ Parallax effect in javascript using face tracking. An immersive view in 3d with webcam.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of parallax-effect
parallax-effect Key Features
parallax-effect Examples and Code Snippets
Community Discussions
Trending Discussions on parallax-effect
QUESTION
My parallax effect for UIView
is not working at all. I need something like a moving background image on iPhone tilt (pseudo-3D).
ANSWER
Answered 2020-May-22 at 08:48In the code that you have shared, one thing that I noticed is that you are using capital T
in the enums .TiltAlongHorizontalAxis
and .TiltAlongVerticalAxis
, which don't compile (at least on Xcode 11.4.1) -> those need to be changed to lowercase T
.
Apple's documentation for those enums is here.
Other than that, I don't see any problems with the code that you shared. In fact I created a sample project with a simple imageView
in the view to which I added constraints so that it fills up the entire space of its superview.
I then added the motion effects code that you shared, and ran it on an actual device (iPad Pro). It worked perfectly.
Could you check a few things that might be a source of the problem:
- Double check that
Settings
>Accessibility
>Motion
>Reduce Motion
is not turned on. Because if it is turned on, thenUIInterpolatingMotionEffect
won't work. - Test that the accelerometer of the device that you are testing on actually works. Or better still, use another device to test it. (This won't work on the simulator).
- If you are editing the frame of the
imageView
in code anywhere (or especially inviewWillLayout
/viewDidLayout
), you shouldn't be doing that.
In any case, if none of these things help you to fix your problem, can you create a simple sample project which demonstrates the bug and post it on Github? I can try to help if I can actually reproduce the problem.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install parallax-effect
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page