Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
f708c42e
Commit
f708c42e
authored
Jul 09, 2013
by
Brian Talbot
Committed by
David Baumgold
Jul 10, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Studio: revises anim syntax, adds utility anims, and revises rotate transitions for nav
parent
4a0a0673
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
100 additions
and
14 deletions
+100
-14
cms/static/sass/assets/_anims.scss
+98
-11
cms/static/sass/elements/_navigation.scss
+2
-3
No files found.
cms/static/sass/assets/_anims.scss
View file @
f708c42e
// studio animations & keyframes
// ====================
// fade in
@include
keyframes
(
fadeIn
)
{
0
%
{
opacity
:
0
.0
;
}
50
%
{
opacity
:
0
.5
;
}
100
%
{
opacity
:
1
.0
;
}
}
// canned animation - use if you want out of the box/non-customized anim
.anim-fadeIn
{
@include
animation
(
fadeIn
0
.25s
linear
1
);
}
// fade out
@include
keyframes
(
fadeOut
)
{
0
%
{
opacity
:
1
.0
;
}
50
%
{
opacity
:
0
.5
;
}
100
%
{
opacity
:
0
.0
;
}
}
// canned animation - use if you want out of the box/non-customized anim
.anim-fadeOut
{
@include
animation
(
fadeOut
0
.25s
linear
1
);
}
// ====================
// rotate up
@include
keyframes
(
rotateUp
)
{
0
%
{
@include
transform
(
rotate
(
0deg
));
}
50
%
{
@include
transform
(
rotate
(
-90deg
));
}
100
%
{
@include
transform
(
rotate
(
-180deg
));
}
}
// canned animation - use if you want out of the box/non-customized anim
.anim-rotateUp
{
@include
animation
(
rotateUp
0
.25s
ease-in-out
1
);
}
// rotate up
@include
keyframes
(
rotateDown
)
{
0
%
{
@include
transform
(
rotate
(
0deg
));
}
50
%
{
@include
transform
(
rotate
(
90deg
));
}
100
%
{
@include
transform
(
rotate
(
180deg
));
}
}
// canned animation - use if you want out of the box/non-customized anim
.anim-rotateDown
{
@include
animation
(
rotateDown
0
.25s
ease-in-out
1
);
}
// rotate clockwise
@include
keyframes
(
rotateCW
)
{
0
%
{
...
...
@@ -16,13 +103,12 @@
}
}
// ====================
// canned rotate clockwise animation - use if you want out of the box/non-customized anim
// canned animation - use if you want out of the box/non-customized anim
.anim-rotateCW
{
@include
animation
(
rotateCW
1
.0s
linear
in
ifin
te
);
@include
animation
(
rotateCW
1
.0s
linear
in
fini
te
);
}
// rotate counter-clockwise
@include
keyframes
(
rotateCCW
)
{
0
%
{
...
...
@@ -38,13 +124,15 @@
}
}
// canned
rotate counter-clockwise
animation - use if you want out of the box/non-customized anim
// canned animation - use if you want out of the box/non-customized anim
.anim-rotateCCW
{
@include
animation
(
rotateCCW
1
.0s
linear
in
ifin
te
);
@include
animation
(
rotateCCW
1
.0s
linear
in
fini
te
);
}
// ====================
// notifications slide up
@include
keyframes
(
notificationSlideUp
)
{
0
%
{
...
...
@@ -60,8 +148,6 @@
}
}
// ====================
// notifications slide down
@include
keyframes
(
notificationSlideDown
)
{
0
%
{
...
...
@@ -77,8 +163,10 @@
}
}
// ====================
// bounce in
@include
keyframes
(
bounceIn
)
{
0
%
{
...
...
@@ -96,12 +184,11 @@
}
}
// canned
bounce in
animation - use if you want out of the box/non-customized anim
// canned animation - use if you want out of the box/non-customized anim
.anim-bounceIn
{
@include
animation
(
bounceIn
0
.5s
ease-in-out
1
);
}
// ====================
// bounce out
@include
keyframes
(
bounceOut
)
{
...
...
@@ -120,7 +207,7 @@
}
}
// canned
bounce in
animation - use if you want out of the box/non-customized anim
// canned animation - use if you want out of the box/non-customized anim
.anim-bounceOut
{
@include
animation
(
bounceOut
0
.5s
ease-in-out
1
);
}
cms/static/sass/elements/_navigation.scss
View file @
f708c42e
...
...
@@ -33,7 +33,7 @@ nav {
}
.ui-toggle-dd
{
@include
transition
(
rotate
.25s
ease-in-out
.25s
);
@include
transition
(
all
0
.25s
ease-in-out
0
);
margin-left
:
(
$baseline
/
10
);
display
:
inline-block
;
vertical-align
:
middle
;
...
...
@@ -44,7 +44,6 @@ nav {
.ui-toggle-dd
{
@include
transform
(
rotate
(
-180deg
));
@include
transform-origin
(
50%
50%
);
}
}
}
...
...
@@ -58,7 +57,7 @@ nav {
}
.wrapper-nav-sub
{
@include
transition
(
opacity
1
.0
s
ease-in-out
0s
);
@include
transition
(
opacity
0
.25
s
ease-in-out
0s
);
position
:
absolute
;
top
:
(
$baseline
*
2
.5
);
opacity
:
0
.0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment