Can I slow down the speed of the featured slides?

I'm trying to slow down the speed of the slideshow. I'm looking in the stylesheet under #slides  .features_pagination but none of the code there seems to have anything to do with the speed of the slideshow. I made some pics with text and people want more time to read them. Thanks

Official response from Jesse Haff

You can change the speed of the slider by first adding the following javascript to your layout.html file, somewhere just below the {{ content_for_header }} tag, and then modifying the play speed. 4000 would be 1 second shorter, 6000 would be 1 second longer. 

<script>
$(document).ready(function(){
$("#slides_custom").slides({
preload: true,
generatePagination: false,
play: 5000,
effect: 'fade',
fadeSpeed: 700,
crossfade: true,
pagination: true,
paginationClass: 'features_pagination'

});
});
</script>

Next, edit the Featured content sliders template and change

<div id="slides">

to

<div id="slides_custom">

Finally, add the following to the bottom of your theme.scss file:

#slides_custom {
overflow: hidden;
#features_headline {
position: absolute;
bottom: 0px;
background: #333;
width: 100%;
font-size: 20px;
color: #fff;
/* Fallback for web browsers that doesn't support RGBa */
background: rgb(0, 0, 0) transparent;
/* RGBa with 0.6 opacity */
background: rgba(0, 0, 0, 0.6);
/* For IE 5.5 - 7*/
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000, endColorstr=#99000000);
/* For IE 8*/
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000, endColorstr=#99000000)";
a {
padding: 15px;
display: block;
color: #fff; } }
.features_pagination {
height: 40px;
ul {
line-height: 40px;
margin: 0px;
padding: 0px; }
ul li {
float: left;
display: block;
color: black;
display: inline;
background-color: $theme_color_4;
margin-right: 5px;
@include border-radius-bottom-left(6px);
@include border-radius-bottom-right(6px);
padding: 0 15px;
&:hover {
background-color: darken($theme_color_4, 10); }
a {
color: black;
&:hover {
text-decoration: none; } } }
ul li.current a {
display: block;
color: black; }
.current {
background-color: darken($theme_color_4, 10);
color: black; } } }

How would you tag this suggestion?
Do you like this suggestion?

Showing 8 reactions


Lilia Villa tagged this with Answered 2012-05-15 09:18:57 -0700
cStreet Campaigns tagged this with Helpful 2012-05-13 09:24:40 -0700
Jerimee Richir tagged this with Helpful 2012-05-10 16:10:40 -0700
Jesse Haff responded 2012-02-09 15:48:03 -0800

You can change the speed of the slider by first adding the following javascript to your layout.html file, somewhere just below the {{ content_for_header }} tag, and then modifying the play speed. 4000 would be 1 second shorter, 6000 would be 1 second longer. 

<script>
$(document).ready(function(){
$("#slides_custom").slides({
preload: true,
generatePagination: false,
play: 5000,
effect: 'fade',
fadeSpeed: 700,
crossfade: true,
pagination: true,
paginationClass: 'features_pagination'

});
});
</script>

Next, edit the Featured content sliders template and change

<div id="slides">

to

<div id="slides_custom">

Finally, add the following to the bottom of your theme.scss file:

#slides_custom {
overflow: hidden;
#features_headline {
position: absolute;
bottom: 0px;
background: #333;
width: 100%;
font-size: 20px;
color: #fff;
/* Fallback for web browsers that doesn't support RGBa */
background: rgb(0, 0, 0) transparent;
/* RGBa with 0.6 opacity */
background: rgba(0, 0, 0, 0.6);
/* For IE 5.5 - 7*/
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000, endColorstr=#99000000);
/* For IE 8*/
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000, endColorstr=#99000000)";
a {
padding: 15px;
display: block;
color: #fff; } }
.features_pagination {
height: 40px;
ul {
line-height: 40px;
margin: 0px;
padding: 0px; }
ul li {
float: left;
display: block;
color: black;
display: inline;
background-color: $theme_color_4;
margin-right: 5px;
@include border-radius-bottom-left(6px);
@include border-radius-bottom-right(6px);
padding: 0 15px;
&:hover {
background-color: darken($theme_color_4, 10); }
a {
color: black;
&:hover {
text-decoration: none; } } }
ul li.current a {
display: block;
color: black; }
.current {
background-color: darken($theme_color_4, 10);
color: black; } } }

algie powers tagged this with Helpful 2012-02-06 17:39:23 -0800
Jerimee Richir commented 2012-02-02 10:05:29 -0800
You cannot FTP. But you can still add javascript.

A developer familiar with NationBuilder should be able to solve this. Email me at jerimee@richiroutreach.com if you would like support. Or, next time I’m working on something like this, I’ll see if I can post a more helpful comment.
algie powers commented 2012-02-02 10:00:25 -0800
It’s my understanding that you cannot get to the files via FTP with Nation Builder. So, there’s no way to get to the javascript that sets the speed?
Jerimee Richir commented 2012-01-30 17:49:42 -0800
I think you have to edit the javascript file, and I’m not sure if it easily accessible.
Join our team
We're hiring great software developers and organizers. Learn more →