Skip to content

Commit abf061f

Browse files
committed
[DOC] add animation of right sidebar
1 parent d740233 commit abf061f

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

docs/source/_static/css/custom.css

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,21 @@ html[data-theme="dark"] {
138138
border-left: none;
139139
}
140140

141-
/* Fixed position for right sidebar */
141+
/* Right sidebar slide-in animation on page load */
142+
@keyframes slideInFromLeft {
143+
from {
144+
opacity: 0;
145+
transform: translateX(-20px);
146+
}
147+
to {
148+
opacity: 1;
149+
transform: translateX(0);
150+
}
151+
}
152+
142153
.bd-sidebar-secondary {
143154
min-width: 200px;
155+
animation: slideInFromLeft 0.3s ease forwards;
144156
}
145157

146158
.pst-page-navigation-heading {

0 commit comments

Comments
 (0)