Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try a full screen mode appear animation #9910

Merged
merged 1 commit into from
Sep 20, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions edit-post/assets/stylesheets/_animations.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@
animation: slide_in_right 0.1s forwards;
}

@mixin slide_in_top {
transform: translateY(-100%);
animation: slide_in_top 0.1s forwards;
}

@mixin fade_in($speed: 0.2s, $delay: 0s) {
animation: fade-in $speed ease-out $delay;
animation-fill-mode: forwards;
Expand Down
6 changes: 6 additions & 0 deletions edit-post/assets/stylesheets/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@
}
}

@keyframes slide_in_top {
100% {
transform: translateY(0%);
}
}

// In order to use mix-blend-mode, this element needs to have an explicitly set background-color
// We scope it to .wp-toolbar to be wp-admin only, to prevent bleed into other implementations
html.wp-toolbar {
Expand Down
7 changes: 7 additions & 0 deletions edit-post/components/fullscreen-mode/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,11 @@ body.is-fullscreen-mode {
#wpfooter {
margin-left: 0;
}

// Animations
@include fade_in(0.3s);

.edit-post-header {
@include slide_in_top();
}
}