Browse Source

Added 'captions' to the last example.

pull/25/merge
Viljami S 13 years ago
parent
commit
0718358548
  1. 38
      demo/demo.css
  2. 22
      demo/demo.html

38
demo/demo.css

@ -125,12 +125,6 @@ a {
font-size: 11px; font-size: 11px;
} }
@media screen and (max-width: 600px) {
h1 {
font: 24px/50px "Helvetica Neue", Helvetica, Arial, sans-serif;
}
}
/* Callback example */ /* Callback example */
h3 { h3 {
@ -168,17 +162,38 @@ h3 {
.callbacks img { .callbacks img {
display: block; display: block;
position: relative;
z-index: 1;
height: auto; height: auto;
width: 100%; width: 100%;
border: 0; border: 0;
} }
.callbacks .caption {
display: block;
position: absolute;
z-index: 2;
font-size: 20px;
text-shadow: none;
background: red;
color: #fff;
background: #000;
background: rgba(0,0,0, .8);
left: 0;
right: 0;
bottom: 0;
padding: 10px 20px;
margin: 0;
max-width: none;
}
.callbacks_nav { .callbacks_nav {
position: absolute; position: absolute;
-webkit-tap-highlight-color: rgba(0,0,0,0); -webkit-tap-highlight-color: rgba(0,0,0,0);
top: 56%; top: 52%;
left: 0; left: 0;
opacity: 0.7; opacity: 0.7;
z-index: 3;
text-indent: -9999px; text-indent: -9999px;
overflow: hidden; overflow: hidden;
text-decoration: none; text-decoration: none;
@ -197,3 +212,12 @@ h3 {
background-position: right top; background-position: right top;
right: 0; right: 0;
} }
@media screen and (max-width: 600px) {
h1 {
font: 24px/50px "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.callbacks_nav {
top: 47%;
}
}

22
demo/demo.html

@ -13,7 +13,8 @@
// Slideshow 1 // Slideshow 1
$("#slides1").responsiveSlides({ $("#slides1").responsiveSlides({
maxwidth: 800 maxwidth: 800,
fade: 800,
}); });
// Slideshow 2 // Slideshow 2
@ -29,7 +30,7 @@
auto: false, auto: false,
pagination: false, pagination: false,
nav: true, nav: true,
fade: 400, fade: 500,
namespace: "callbacks" namespace: "callbacks"
}).bind({ }).bind({
// Before callback // Before callback
@ -67,11 +68,22 @@
<!-- Slideshow 2 --> <!-- Slideshow 2 -->
<div class="callbacks_container"> <div class="callbacks_container">
<ul id="slides3"> <ul id="slides3">
<li><img src="1.jpg" alt="" /></li> <li>
<li><img src="2.jpg" alt="" /></li> <img src="1.jpg" alt="" />
<li><img src="3.jpg" alt="" /></li> <p class="caption">This is a caption</p>
</li>
<li>
<img src="2.jpg" alt="" />
<p class="caption">This is another caption</p>
</li>
<li>
<img src="3.jpg" alt="" />
<p class="caption">The third caption</p>
</li>
</ul> </ul>
</div> </div>
<!-- This is here just to demonstrate the callbacks -->
<ul class="events"> <ul class="events">
<li><h3>Example 3 callback events</h3></li> <li><h3>Example 3 callback events</h3></li>
</ul> </ul>

Loading…
Cancel
Save