Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
JUNCA24 RevealJS
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
Container registry
Model registry
Operate
Environments
Terraform modules
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
PGI15-Teaching
JUNCA24 RevealJS
Commits
5d273cfb
Unverified
Commit
5d273cfb
authored
7 years ago
by
John Muccigrosso
Committed by
GitHub
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Background repeat & position to parallax background
parent
7991693b
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
js/reveal.js
+8
-0
8 additions, 0 deletions
js/reveal.js
with
8 additions
and
0 deletions
js/reveal.js
+
8
−
0
View file @
5d273cfb
...
...
@@ -173,6 +173,12 @@
// Parallax background size
parallaxBackgroundSize
:
''
,
// CSS syntax, e.g. "3000px 2000px"
// Parallax background repeat
parallaxBackgroundRepeat
:
''
,
// repeat/repeat-x/repeat-y/no-repeat/initial/inherit
// Parallax background position
parallaxBackgroundPosition
:
''
,
// CSS syntax, e.g. "top left"
// Amount of pixels to move the parallax background per slide step
parallaxBackgroundHorizontal
:
null
,
parallaxBackgroundVertical
:
null
,
...
...
@@ -867,6 +873,8 @@
dom
.
background
.
style
.
backgroundImage
=
'
url("
'
+
config
.
parallaxBackgroundImage
+
'
")
'
;
dom
.
background
.
style
.
backgroundSize
=
config
.
parallaxBackgroundSize
;
dom
.
background
.
style
.
backgroundRepeat
=
config
.
parallaxBackgroundRepeat
;
dom
.
background
.
style
.
backgroundPosition
=
config
.
parallaxBackgroundPosition
;
// Make sure the below properties are set on the element - these properties are
// needed for proper transitions to be set on the element via CSS. To remove
...
...
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