Giter Site home page Giter Site logo

zwanzig-grad's Introduction

zwanzig-grad

zwanzig-grad's People

Contributors

marvin1003 avatar

Stargazers

Mara Schulke avatar

Watchers

James Cloos avatar

zwanzig-grad's Issues

Intersection Observer - LazyLoading

Doesnt work properly when the perspective is changed and the elements are moved along the z axis.
You can easily debug it when you use the dev tools to check where the parallax elements are really placed. They just seem to be where they are, thats the magic of perspective + transform. They are actually somewhere else positioned in the DOM and have a different size. We had to calculate everything with sass mixins in order to get the parallax effect (achieved by perspective and transform) but still have them visually sized and positioned as we want them to be.

Since the parallax effect is created using 3D transforms, translating an element along the Z axis has a side effect - its effective size changes as we move it closer to or farther away from the viewport. To counter this we need to apply a scale() transform to the element so that it appears to be rendered at its original size: - keithclark

Sometimes they are placed outside of the viewport along the x axis (even tho they are visually inside) which results in the Intersection Observer not being able to recognize the element as in the viewport. There is another issue affecting the detection on the y axis. Its also a side effect of the css parallax.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.