- The page take up between 10 and 30% of my CPU to render the animations
on a MacBook Pro from 2015.
- Firefox has a different animation from other browsers, where the rocket
`exhaust__line` extends further than it should.
- For other browsers (tested in Chrome and Safari on macOS), the smoke is
cropped to the sides because of root-level SVGs being `overflow: hidden`.
- The animation doesn’t respect [`prefers-reduced-motion:
reduce`](https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-
reduced-motion) (more of an enhancement).
--
Ticket URL: <https://code.djangoproject.com/ticket/32051>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* Attachment "32051-rocket-animation-performance.gif" added.
Screenshot of the Chrome DevTools showing CPU usage with the animation
* Attachment "32051-rocket-firefox.png" added.
Screenshot of animation rendering in Firefox
* Attachment "32051-rocket-safari.png" added.
Screenshot of animation rendering in Safari
* has_patch: 0 => 1
Old description:
> There are a number of issues with the rocket animation shown on the
> Congrats page. In no specific order,
>
> - The page take up between 10 and 30% of my CPU to render the animations
> on a MacBook Pro from 2015.
> - Firefox has a different animation from other browsers, where the rocket
> `exhaust__line` extends further than it should.
> - For other browsers (tested in Chrome and Safari on macOS), the smoke is
> cropped to the sides because of root-level SVGs being `overflow: hidden`.
> - The animation doesn’t respect [`prefers-reduced-motion:
> reduce`](https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-
> reduced-motion) (more of an enhancement).
New description:
There are a number of issues with the rocket animation shown on the
Congrats page. In no specific order,
- The page take up between 10 and 30% of my CPU to render the animations
on a MacBook Pro from 2015.
- Firefox has a different animation from other browsers, where the rocket
`exhaust__line` extends further than it should.
- For other browsers (tested in Chrome and Safari on macOS), the smoke is
cropped to the sides because of root-level SVGs being `overflow: hidden`.
- The animation doesn’t respect [`prefers-reduced-motion:
reduce`](https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-
reduced-motion) (more of an enhancement).
I’ve taken a stab at addressing these, and cleaning up unused CSS and SVG,
in https://github.com/django/django/pull/13463.
--
--
Ticket URL: <https://code.djangoproject.com/ticket/32051#comment:1>
--
Ticket URL: <https://code.djangoproject.com/ticket/32051#comment:2>
* keywords: => accessibility, ui
* ui_ux: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/32051#comment:3>
Old description:
> There are a number of issues with the rocket animation shown on the
> Congrats page. In no specific order,
>
> - The page take up between 10 and 30% of my CPU to render the animations
> on a MacBook Pro from 2015.
> - Firefox has a different animation from other browsers, where the rocket
> `exhaust__line` extends further than it should.
> - For other browsers (tested in Chrome and Safari on macOS), the smoke is
> cropped to the sides because of root-level SVGs being `overflow: hidden`.
> - The animation doesn’t respect [`prefers-reduced-motion:
> reduce`](https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-
> reduced-motion) (more of an enhancement).
>
> I’ve taken a stab at addressing these, and cleaning up unused CSS and
> SVG, in https://github.com/django/django/pull/13463.
New description:
There are a number of issues with the rocket animation shown on the
Congrats page. In no specific order,
- The page take up between 10 and 30% of my CPU to render the animations
on a MacBook Pro from 2015.
- Firefox has a different animation from other browsers, where the rocket
`exhaust__line` extends further than it should.
- For other browsers (tested in Chrome and Safari on macOS), the smoke is
cropped to the sides because of root-level SVGs being `overflow: hidden`.
- The animation doesn’t respect [https://developer.mozilla.org/en-
US/docs/Web/CSS/@media/prefers-reduced-motion `prefers-reduced-motion:
reduce`] (more of an enhancement).
I’ve taken a stab at addressing these, and cleaning up unused CSS and SVG,
in https://github.com/django/django/pull/13463.
--
--
Ticket URL: <https://code.djangoproject.com/ticket/32051#comment:4>
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/32051#comment:6>
Comment (by Mariusz Felisiak <felisiak.mariusz@…>):
In [changeset:"838e115ab159174f759f09d63398e1eed14e4dbe" 838e115a]:
{{{
#!CommitTicketReference repository=""
revision="838e115ab159174f759f09d63398e1eed14e4dbe"
Refs #32051 -- Cleaned up CSS and SVG in the 'Congrats' page.
- Removed unnecessary vendor prefixes.
- Removed unused CSS and SVG code.
- Removed invalid CSS.
- Removed IE9-only browser reset styles.
- Fixed animation on Firefox.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/32051#comment:7>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"b807298c666711ba106b06fef05a25073c62b802" b807298]:
{{{
#!CommitTicketReference repository=""
revision="b807298c666711ba106b06fef05a25073c62b802"
Fixed #32051 -- Fixed rocket animation on the 'Congrats' page.
- Fixed congratulations smoke being cropped.
- Refactored congratulation rocket so the animation can be stopped.
- Made animation respect user preference for reduced animation.
- Made rocket animation stop after 7s.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/32051#comment:8>