Skip to content

Commit

Permalink
feature #1480 Add a subtle cross-fade view transition (javiereguiluz)
Browse files Browse the repository at this point in the history
This PR was merged into the main branch.

Discussion
----------

Add a subtle cross-fade view transition

On symfony.com we recently added some subtle [CSS view transitions](https://developer.mozilla.org/en-US/docs/Web/API/View_Transitions_API).

I propose to add this little change that adds a very subtle cross-fade animation between page loads. For now, it only works on Google Chrome browsers.

Commits
-------

ed9edd9 Add a subtle cross-fade view transition
  • Loading branch information
javiereguiluz committed Dec 20, 2023
2 parents 37813f6 + ed9edd9 commit 637c294
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions templates/base.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<meta name="view-transition" content="same-origin" />
<title>{% block title %}Symfony Demo application{% endblock %}</title>
<link rel="alternate" type="application/rss+xml" title="{{ 'rss.title'|trans }}" href="{{ path('blog_rss') }}">

Expand Down

0 comments on commit 637c294

Please sign in to comment.