Comments (6)
@harm-less @psaniko There might be a CSS based fix for the flickering of sticky elements on iOS. The combination of forcing hardware acceleration (by using 3D transform) and the usage of backface-visibility did the trick. Applying transform: translate3d(0,0,0); backface-visibility: hidden
pushes the graphical processing unit (GPU), and the rendering will be done in a higher FPS rate. All tests (iOS 9,10, iPhone 5,6, iPad 1) had been successful.
Downside of this - applying the transformation by script would override all existing transformations on that element and since all transformations are converted into a matrix, parsing and updating this property could be messy. Anyway, using these CSS-Rules will remove the flickering.
from angular-sticky.
Next week I'm off from work and you triggered me with this request ;)
So I might be able to address my long awaited attempt at refactoring the sticky engine. With this improvement the code will be much easier to handle and during this refactoring I'll keep your request I mind too.
I might also need to rely more on modernizr if I want to support both sticky methods, but we'll see. I'll keep you informed.
from angular-sticky.
It seems like this plugin wouldn't even be necessary anymore in many situations 😛 But in terms of performance it would definitely be handy as I can let the browser do the calculations.
A drawback would be that the CSS might not be able to handle stacks.
Perhaps I can make it so the polyfill can hook into the plugin using a wrapper, but then it would be nice that the current engine is hook-able too because that will save file size. I guess I'm making it a bit too complex that way, but I'm just going out on a limb here :)
from angular-sticky.
Not sure if we can save filesize that way as position:fixed will need to be supported for several years, of course. Let us know any ideas regarding the implementation or plans on your side to implement it, we will probably tackle this issue soon and try to integrate it in angular-sticky.
from angular-sticky.
That's good to know! We'll wait for potential progress then, no pressure :)
from angular-sticky.
@harm-less Any updates so far?
from angular-sticky.
Related Issues (20)
- bodyEl.scrollTop is not a function error HOT 14
- layout breaks when using ng-show HOT 4
- prevent stacking of non-overlapping sticky elements? HOT 3
- elementWidth() HOT 3
- requires jquery even though you mention its a pure javascript implementation. HOT 3
- bug with width HOT 1
- Replaces the element with a div HOT 2
- Enable redraw method for directive HOT 1
- Immediately show sticky-element (bottom) HOT 7
- Not sticky when at top of page (window.scrollY = 0) HOT 2
- Angular 1.5.8
- Placeholder causes the window to scroll-down when using ui-bootstrap's popover HOT 3
- Page Jumps on click HOT 1
- Placeholder height doesn't change after dynamic height change of sticky element HOT 3
- We cannot update bower HOT 2
- Sticky element position don't rerendred on resize HOT 1
- z-index is always relative to 1039
- Want it Sticky only after scrolling past other bottom elements
- All the stack and collection demos are broken HOT 1
- Need help? HOT 1
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 angular-sticky.