Blinking fixed header in site with scrolling animation
Well, it looks like this issue is probably isolated to chrome and the speed at which fixed positioned elements render when CSS animations are firing off during scroll.
I wanted to see if this little trick would hardware-accelerate elements that weren't actually the subject of a CSS animation in chrome. Turns out it did. :)
Here's the solution:
.topbar
{
-webkit-transform: translate3d(0,0,0);
}
Bootstrap 3 Fixed Top Navbar 'Flickering' On Mobile Scrolling using jQuery One-Page Scrolling Effect
Try this
{
-webkit-backface-visibility: hidden;
}
Reference: https://developer.apple.com/library/content/documentation/InternetWeb/Conceptual/SafariVisualEffectsProgGuide/Using2Dand3DTransforms/Using2Dand3DTransforms.html#//apple_ref/doc/uid/TP40008032-CH15-SW40
DIVs flickering when positioning them fixed when scrolling inside a Div
if your div sizes are fixed and you want on same position in all browser then no need to call js function simply set css float:left; property with all your divs and use cf class on outer div of that 4 div. Example is:
HTML:
<div class="parent">
<div class="static cf">
<div class="left"></div>
<div class="right"></div>
<div class="header"></div>
<div class="footer"></div>
</div>
</div>
CSS:
.header{
border:1px solid red;
width:100px;
height:100px;
background-color:#F2F2F2;
float:left;
top:0px;
left:0px;
z-index:10;
}
.left{
border:1px solid red;
height:100px;
width:100px;
left:0px;
float:left;
top:100px;
background-color:#CCC;
}
.right{
border:1px solid red;
height:100px;
width:100px;
right:0px;
float:left;
top:100px;
background-color:#CCC;
}
.footer{
border:1px solid red;
width:100px;
height:100px;
background-color:#F2F2F2;
float:left;
left:0px;
bottom:0px;
z-index:10;
}
.static{
height:105px;
width:410px;
position:relative;
}
.cf{clear:both}
Fixed attachment background image flicker/disappear in chrome when coupled with a css transform
This has been a very common unsolved mystery. Recently I had the same problem, and '-webkit-backface-visibility: hidden', proved to be less than useless (on my 'fixed' attached background), since the background just disappeared when it was set. (Additional Info: the reason is that when the background is set as fixed, it is almost similar to putting a fixed 'div' in the background and setting the original div background to be transparent. Hidden backface does the obvious).
To solve the current problem, try setting the 'position' propery of the element as 'static', or if you have given it some other value, namely 'relative', 'fixed' or 'absolute', just remove those.
If you don't remember setting the position property, and the problem still persist, my suggestion is that you use a debugging tool on chrome or firefox, to
make sure there are no manually set values to the 'position' property other than
'static'.
Just spent half an hour searching... Thought this could make it easier for you... regards. :)
SVG Blink Issue On Scroll Up/Scroll Down
I not really familiar with waypoint JS, but you can see my work at https://jsfiddle.net/b85612w7/22/
Basically i think there some flow conflict between waypoint.js beginElement
, and jQuery addClass and removeClass
, so i try hard fix this by adding your animate duration to setTimeout()
Related Topics
How to Pass Styles to Child Component and Use It as Scoped Style in Vue
Chosen Dropdown Within Bootstrap Modal Is Hidden Behind Modal Footer
Jquery/JavaScript CSS("Width")/Check If Style Is Defined in CSS
Change CSS Link and Wait Till New CSS Is Loaded
Setting Multiple Style.Background Values
Update Three.Js Raycaster After CSS Tranformation
Tinymce: How to Display All Toolbars on a Single Row
Rotating a Div How to Set Around Which Point to Rotate
Implementing Flipcard on Click Instead of on Hover
Getting Pseudo-Element Style Values
How to Make Bootstrap Off Canvas Nav Overlap Content Instead of Move It
Customize the Style of Rc-Time-Picker
Select2 Change Background Color
How to Get CSS Transform Rotation Value in Degrees with JavaScript