Skip to content

Polyfill not working for animation-timeline: view() and animation-range #205

@acusti

Description

@acusti

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions