Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
Self Service Frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Fachschaften der Fakultät für Informatik
Identity Management
Self Service Frontend
Commits
825a96d8
Verified
Commit
825a96d8
authored
1 year ago
by
Adrian Paschkowski
Browse files
Options
Downloads
Patches
Plain Diff
Customize navigation view transition
parent
73d669fd
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/components/layout/App.tsx
+1
-1
1 addition, 1 deletion
src/components/layout/App.tsx
src/index.css
+32
-0
32 additions, 0 deletions
src/index.css
with
33 additions
and
1 deletion
src/components/layout/App.tsx
+
1
−
1
View file @
825a96d8
...
...
@@ -19,7 +19,7 @@ export default function App() {
<
div
className
=
{
classes
}
>
<
Header
/>
<
Sidebar
/>
<
main
className
=
"mx-4 lg:mx-8 mt-24 sm:mt-28 lg:mt-0"
>
<
main
className
=
"mx-4 lg:mx-8 mt-24 sm:mt-28 lg:mt-0
[view-transition-name:main-content]
"
>
<
Outlet
/>
</
main
>
</
div
>
...
...
This diff is collapsed.
Click to expand it.
src/index.css
+
32
−
0
View file @
825a96d8
...
...
@@ -17,3 +17,35 @@ html {
code
{
font-family
:
source-code-pro
,
Menlo
,
Monaco
,
Consolas
,
'Courier New'
,
monospace
;
}
@keyframes
animate-content-out
{
from
{
transform
:
translate
(
0
,
0
);
opacity
:
1
;
}
to
{
transform
:
translate
(
-1%
,
-1%
);
opacity
:
0
;
}
}
@keyframes
animate-content-in
{
from
{
transform
:
translate
(
1%
,
1%
);
opacity
:
0
;
}
to
{
transform
:
translate
(
0
,
0
);
opacity
:
1
;
}
}
::view-transition-old
(
main-content
)
{
animation
:
0.1s
ease-out
both
animate-content-out
;
}
::view-transition-new
(
main-content
)
{
animation
:
0.1s
ease-out
both
animate-content-in
;
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment