Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
2
2015-12-uni-ffm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
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
CmS
2015-12-uni-ffm
Commits
a400dd0c
Commit
a400dd0c
authored
12 years ago
by
Hakim El Hattab
Browse files
Options
Downloads
Patches
Plain Diff
support for transition speed settings (closes #392)
parent
308987ee
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
README.md
+8
-1
8 additions, 1 deletion
README.md
css/reveal.css
+42
-14
42 additions, 14 deletions
css/reveal.css
css/reveal.min.css
+1
-1
1 addition, 1 deletion
css/reveal.min.css
js/reveal.js
+5
-0
5 additions, 0 deletions
js/reveal.js
js/reveal.min.js
+2
-2
2 additions, 2 deletions
js/reveal.min.js
with
58 additions
and
18 deletions
README.md
+
8
−
1
View file @
a400dd0c
...
...
@@ -100,7 +100,10 @@ Reveal.initialize({
rollingLinks
:
true
,
// Transition style
transition
:
'
default
'
// default/cube/page/concave/zoom/linear/fade/none
transition
:
'
default
'
,
// default/cube/page/concave/zoom/linear/fade/none
// Transition speed
transitionSpeed
:
'
default
'
,
// default/fast/slow
});
```
...
...
@@ -268,6 +271,10 @@ The global presentation transition is set using the ```transition``` config valu
<section
data-transition=
"zoom"
>
<h2>
This slide will override the presentation transition and zoom!
</h2>
</section>
<section
data-transition-speed=
"fast"
>
<h2>
Choose from three transition speeds: default, fast or slow!
</h2>
</section>
```
Note that this does not work with the page and cube transitions.
...
...
This diff is collapsed.
Click to expand it.
css/reveal.css
+
42
−
14
View file @
a400dd0c
...
...
@@ -566,24 +566,52 @@ body {
-webkit-transition
:
-webkit-transform-origin
800ms
cubic-bezier
(
0.260
,
0.860
,
0.440
,
0.985
),
-webkit-transform
800ms
cubic-bezier
(
0.260
,
0.860
,
0.440
,
0.985
),
visibility
800ms
cubic-bezier
(
0.260
,
0.860
,
0.440
,
0.985
),
opacity
800ms
cubic-bezier
(
0.260
,
0.860
,
0.440
,
0.985
);
visibility
800ms
cubic-bezier
(
0.260
,
0.860
,
0.440
,
0.985
),
opacity
800ms
cubic-bezier
(
0.260
,
0.860
,
0.440
,
0.985
);
-moz-transition
:
-moz-transform-origin
800ms
cubic-bezier
(
0.260
,
0.860
,
0.440
,
0.985
),
-moz-transform
800ms
cubic-bezier
(
0.260
,
0.860
,
0.440
,
0.985
),
visibility
800ms
cubic-bezier
(
0.260
,
0.860
,
0.440
,
0.985
),
opacity
800ms
cubic-bezier
(
0.260
,
0.860
,
0.440
,
0.985
);
-moz-transform
800ms
cubic-bezier
(
0.260
,
0.860
,
0.440
,
0.985
),
visibility
800ms
cubic-bezier
(
0.260
,
0.860
,
0.440
,
0.985
),
opacity
800ms
cubic-bezier
(
0.260
,
0.860
,
0.440
,
0.985
);
-ms-transition
:
-ms-transform-origin
800ms
cubic-bezier
(
0.260
,
0.860
,
0.440
,
0.985
),
-ms-transform
800ms
cubic-bezier
(
0.260
,
0.860
,
0.440
,
0.985
),
visibility
800ms
cubic-bezier
(
0.260
,
0.860
,
0.440
,
0.985
),
opacity
800ms
cubic-bezier
(
0.260
,
0.860
,
0.440
,
0.985
);
-ms-transform
800ms
cubic-bezier
(
0.260
,
0.860
,
0.440
,
0.985
),
visibility
800ms
cubic-bezier
(
0.260
,
0.860
,
0.440
,
0.985
),
opacity
800ms
cubic-bezier
(
0.260
,
0.860
,
0.440
,
0.985
);
-o-transition
:
-o-transform-origin
800ms
cubic-bezier
(
0.260
,
0.860
,
0.440
,
0.985
),
-o-transform
800ms
cubic-bezier
(
0.260
,
0.860
,
0.440
,
0.985
),
visibility
800ms
cubic-bezier
(
0.260
,
0.860
,
0.440
,
0.985
),
opacity
800ms
cubic-bezier
(
0.260
,
0.860
,
0.440
,
0.985
);
-o-transform
800ms
cubic-bezier
(
0.260
,
0.860
,
0.440
,
0.985
),
visibility
800ms
cubic-bezier
(
0.260
,
0.860
,
0.440
,
0.985
),
opacity
800ms
cubic-bezier
(
0.260
,
0.860
,
0.440
,
0.985
);
transition
:
transform-origin
800ms
cubic-bezier
(
0.260
,
0.860
,
0.440
,
0.985
),
transform
800ms
cubic-bezier
(
0.260
,
0.860
,
0.440
,
0.985
),
visibility
800ms
cubic-bezier
(
0.260
,
0.860
,
0.440
,
0.985
),
opacity
800ms
cubic-bezier
(
0.260
,
0.860
,
0.440
,
0.985
);
transform
800ms
cubic-bezier
(
0.260
,
0.860
,
0.440
,
0.985
),
visibility
800ms
cubic-bezier
(
0.260
,
0.860
,
0.440
,
0.985
),
opacity
800ms
cubic-bezier
(
0.260
,
0.860
,
0.440
,
0.985
);
}
/* Global transition speed settings */
.reveal
[
data-transition-speed
=
"fast"
]
.slides
section
{
-webkit-transition-duration
:
400ms
;
-moz-transition-duration
:
400ms
;
-ms-transition-duration
:
400ms
;
transition-duration
:
400ms
;
}
.reveal
[
data-transition-speed
=
"slow"
]
.slides
section
{
-webkit-transition-duration
:
1200ms
;
-moz-transition-duration
:
1200ms
;
-ms-transition-duration
:
1200ms
;
transition-duration
:
1200ms
;
}
/* Slide-specific transition speed overrides */
.reveal
.slides
section
[
data-transition-speed
=
"fast"
]
{
-webkit-transition-duration
:
400ms
;
-moz-transition-duration
:
400ms
;
-ms-transition-duration
:
400ms
;
transition-duration
:
400ms
;
}
.reveal
.slides
section
[
data-transition-speed
=
"slow"
]
{
-webkit-transition-duration
:
1200ms
;
-moz-transition-duration
:
1200ms
;
-ms-transition-duration
:
1200ms
;
transition-duration
:
1200ms
;
}
.reveal
.slides
>
section
{
...
...
This diff is collapsed.
Click to expand it.
css/reveal.min.css
+
1
−
1
View file @
a400dd0c
This diff is collapsed.
Click to expand it.
js/reveal.js
+
5
−
0
View file @
a400dd0c
...
...
@@ -73,6 +73,9 @@ var Reveal = (function(){
// Transition style
transition
:
'
default
'
,
// default/cube/page/concave/zoom/linear/fade/none
// Transition speed
transitionSpeed
:
'
default
'
,
// default/fast/slow
// Script dependencies to load
dependencies
:
[]
},
...
...
@@ -340,6 +343,8 @@ var Reveal = (function(){
dom
.
wrapper
.
classList
.
add
(
config
.
transition
);
dom
.
wrapper
.
setAttribute
(
'
data-transition-speed
'
,
config
.
transitionSpeed
);
if
(
dom
.
controls
)
{
dom
.
controls
.
style
.
display
=
(
config
.
controls
&&
dom
.
controls
)
?
'
block
'
:
'
none
'
;
}
...
...
This diff is collapsed.
Click to expand it.
js/reveal.min.js
+
2
−
2
View file @
a400dd0c
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