Closed
Bug 1209058
Opened 9 years ago
Closed 3 years ago
Scrolling artifacts on http://www.flagofplanetearth.com
Categories
(Web Compatibility :: Site Reports, defect, P3)
Web Compatibility
Site Reports
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: ehsan.akhgari, Unassigned)
References
(Depends on 1 open bug, )
Details
(Keywords: polish, webcompat:site-wait, Whiteboard: [gfx-noted][apz-evangelism][squarespace framework] [sitewait])
Scrolling on http://www.flagofplanetearth.com with APZ turned on breaks the scrolling effects of the page. The background image seems to snap around instead of moving smoothly with the rest of the page as you scroll.
Comment 1•9 years ago
|
||
Seems smooth to me but it's probably one of those parallax things.
Blocks: all-aboard-apz
Depends on: apz-parallax
Updated•9 years ago
|
Comment 2•9 years ago
|
||
This one still looks smooth to me, but I can see that it's implemented using scroll listeners and updating a 3D transform on the element, so I can see how it might get janky. They should reimplement using CSS parallax scrolling as described at http://keithclark.co.uk/articles/pure-css-parallax-websites/ in order to get smooth behaviour with APZ enabled.
Updated•9 years ago
|
Whiteboard: [apz-evangelism]
Updated•9 years ago
|
Priority: -- → P2
Updated•9 years ago
|
Comment 3•9 years ago
|
||
The clipping of those parallax images also lags behind due to bug 1214146.
Comment 4•9 years ago
|
||
This site is using the parallax scrolling code provided by squarespace [1]. I don't know where the original source is but [2] is the script linked into the page.
[1] https://support.squarespace.com/hc/en-us/articles/205815488-Parallax-scrolling
[2] https://static1.squarespace.com/static/ta/515c7b5ae4b0875140c3d94a/2681/scripts/combo/?rafscroll.js&mutation-observer.js&site.js
Whiteboard: [apz-evangelism] → [apz-evangelism][squarespace framework]
Comment 5•9 years ago
|
||
I have reached out the site owner
info@oskarpernefeldt.com
http://www.oskarpernefeldt.com/273923/contact
Comment 6•9 years ago
|
||
Is there anything the site owners should do here? As far as I can tell, this is just a performance problem in Firefox, and bug 1214146.
Comment 7•9 years ago
|
||
(In reply to Markus Stange [:mstange] from comment #6)
> Is there anything the site owners should do here? As far as I can tell, this
> is just a performance problem in Firefox, and bug 1214146.
The site is updating 3D transforms on elements inside scroll event listeners. Regardless of the other issues, that will not have the desired effect in an APZ world.
![]() |
||
Comment 8•9 years ago
|
||
The script for the scroll event starts at
https://static1.squarespace.com/static/ta/515c7b5ae4b0875140c3d94a/2682/scripts/combo/?rafscroll.js&mutation-observer.js&site.js
positionImages: function () {
if (!this.isMobile) {
var b = this.scrollEl.get('scrollTop'),
a = Y.one(Y.config.win).get('region');
this.parallaxPages.each(function (c, d) {
var e = this.parallaxImages.item(d);
if (c.inRegion(a)) {
var f = this.pageOffsets[c.getAttribute('data-url-id')] -
b,
h = - 1 * parseFloat(f * (this.parallaxOff ? 0 : this.PARALLAX_FACTOR)),
i = e.one('img');
e.setStyles({
transform: 'translate3d(0, ' + f + 'px, 0)'
});
i && i.setStyle('transform', 'translatey(' + h + 'px) translatez(0)')
} else e.setStyle('transform', 'translate3d(0, -100%, 0)')
}, this)
}
},
It also contains a bit of user agent sniffing and dependencies on YUI.
![]() |
||
Comment 9•9 years ago
|
||
putting to sitewait per Comment #5 Thanks Abdul!
Whiteboard: [apz-evangelism][squarespace framework] → [apz-evangelism][squarespace framework] [sitewait]
Comment 10•9 years ago
|
||
Mac 10.11 is OK; Windows 10 still appears a little janky
Name Firefox
Version 47.0a1
Build ID 20160201030241
User Agent Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:47.0) Gecko/20100101 Firefox/47.0
Updated•9 years ago
|
Keywords: polish
Whiteboard: [apz-evangelism][squarespace framework] [sitewait] → [gfx-noted][apz-evangelism][squarespace framework] [sitewait]
Comment 11•9 years ago
|
||
I was wrong, this page is not using the "clip" CSS property. They're using two nested elements per image, the outer one having overflow:hidden, and update the transform on both. So this does not depend on bug 1214146.
No longer depends on: 1214146
Comment 12•9 years ago
|
||
(In reply to Abdul Rauf [:haseeb] from comment #5)
> I have reached out the site owner
> info@oskarpernefeldt.com
> http://www.oskarpernefeldt.com/273923/contact
Abdul, have you heard back from the site owner about this?
Flags: needinfo?(Abdulraufhaseeb)
Comment 13•9 years ago
|
||
I'm moving apz-evangelism bugs that are ready for attention by the Tech Evangelism team (or already in the process of getting it) into the Tech Evangelism component.
Component: Panning and Zooming → Desktop
Product: Core → Tech Evangelism
Version: unspecified → Trunk
Comment 14•9 years ago
|
||
(In reply to Botond Ballo [:botond] from comment #12)
> (In reply to Abdul Rauf [:haseeb] from comment #5)
> > I have reached out the site owner
> > info@oskarpernefeldt.com
> > http://www.oskarpernefeldt.com/273923/contact
>
> Abdul, have you heard back from the site owner about this?
I didn't heard anything from them
Flags: needinfo?(Abdulraufhaseeb)
Comment 15•7 years ago
|
||
This is still reproducible.
Abdul Rauf can you still try to reach them?
Flags: needinfo?(Abdulraufhaseeb)
Priority: P2 → P3
Assignee | ||
Updated•6 years ago
|
Product: Tech Evangelism → Web Compatibility
Comment 17•6 years ago
|
||
See bug 1547409. Moving webcompat whiteboard tags to keywords.
Keywords: webcompat:site-wait
Comment 18•3 years ago
|
||
The site no longer uses parallax scrolling, so this issue is no longer present.
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•