Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
268f20e8
Commit
268f20e8
authored
11 years ago
by
Daniel Bøndergaard
Browse files
Options
Download
Email Patches
Plain Diff
Carousel: Use the transition duration from CSS
This makes it possible to change the transition duration in CSS
parent
463343af
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
js/carousel.js
+1
-1
js/carousel.js
with
1 addition
and
1 deletion
+1
-1
js/carousel.js
+
1
-
1
View file @
268f20e8
...
...
@@ -141,7 +141,7 @@
that
.
sliding
=
false
setTimeout
(
function
()
{
that
.
$element
.
trigger
(
'
slid
'
)
},
0
)
})
.
emulateTransitionEnd
(
6
00
)
.
emulateTransitionEnd
(
$active
.
css
(
'
transition-duration
'
).
slice
(
0
,
-
1
)
*
10
00
)
}
else
{
this
.
$element
.
trigger
(
e
)
if
(
e
.
isDefaultPrevented
())
return
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment