this might be a known issue with the polyfill, but it didn’t look like some of the issues i saw mentioned in other places, e.g. #151 (i am using animation-range but i’m using it with ViewTimeline, not ScrollTimeline). it might be related to this comment, but i’m not sure.
i made a codepen as a demonstration (debug view has just the demo HTML). i’m seeing two issues:
the first is an issue with the .layout-bb figure.img-grid (the second section on the page). it has some subtle animations on the .img-grid itself (the scroll-down animation takes it from transform: translateY(70px) scale(.95); → transform: translateY(0) scale(1);) and on the h6 and p elements to fade in and up (from the scroll-up animation). all of those elements have animation-timeline: view(); animation-range: 40px 250px;.
the second is for the .layout-ee .gram-grid styles (the second to last section on the page). the <img> elements in the .gram-grid are supposed to transition from opacity: 0 to opacity: 1 and from translate(100%) to translate(0%) thanks to the gram-grid animation, but that animation isn’t getting triggered.
note that the animation at the top (.hero-ac .bg-img) is being handled successfully. in that case, the element has animation-timeline: view(); animation-range: exit; and is associated with bg-animation.
thanks to all of the contributors for this resource! it’s all very exciting stuff. and if this issue should be closed and this should be added on to #163 or another existing issue, i’m happy to help with that. i was going to just chime in on 163 but this comment made me think i should create a new issue and document it thoroughly.
this might be a known issue with the polyfill, but it didn’t look like some of the issues i saw mentioned in other places, e.g. #151 (i am using
animation-rangebut i’m using it withViewTimeline, notScrollTimeline). it might be related to this comment, but i’m not sure.i made a codepen as a demonstration (debug view has just the demo HTML). i’m seeing two issues:
the first is an issue with the
.layout-bb figure.img-grid(the second section on the page). it has some subtle animations on the.img-griditself (thescroll-downanimation takes it fromtransform: translateY(70px) scale(.95);→transform: translateY(0) scale(1);) and on theh6andpelements to fade in and up (from thescroll-upanimation). all of those elements haveanimation-timeline: view(); animation-range: 40px 250px;.the second is for the
.layout-ee .gram-gridstyles (the second to last section on the page). the<img>elements in the.gram-gridare supposed to transition fromopacity: 0toopacity: 1and fromtranslate(100%)totranslate(0%)thanks to thegram-gridanimation, but that animation isn’t getting triggered.note that the animation at the top (
.hero-ac .bg-img) is being handled successfully. in that case, the element hasanimation-timeline: view(); animation-range: exit;and is associated withbg-animation.thanks to all of the contributors for this resource! it’s all very exciting stuff. and if this issue should be closed and this should be added on to #163 or another existing issue, i’m happy to help with that. i was going to just chime in on 163 but this comment made me think i should create a new issue and document it thoroughly.