Skip to content

Commit 637c294

Browse files
committed
feature #1480 Add a subtle cross-fade view transition (javiereguiluz)
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
2 parents 37813f6 + ed9edd9 commit 637c294

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

templates/base.html.twig

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
<head>
99
<meta charset="UTF-8" />
1010
<meta name="viewport" content="width=device-width, initial-scale=1"/>
11+
<meta name="view-transition" content="same-origin" />
1112
<title>{% block title %}Symfony Demo application{% endblock %}</title>
1213
<link rel="alternate" type="application/rss+xml" title="{{ 'rss.title'|trans }}" href="{{ path('blog_rss') }}">
1314

0 commit comments

Comments
 (0)