"TEST: Reveal / Devin"
Bootstrap 3.3.0 Snippet by mrmccormack

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<div class="container">
<div class="row">
<!-- https://github.com/nnattawat/slideReveal -->
<h2>Splash Page</h2>
<div id="slideright" class="slider">
<h2>My Website ! </h2>
<div>
Adipiscing in turpis, adipiscing porta massa. Ridiculus urna diam. Ridiculus dignissim aliquet! Mid in lorem platea mus egestas lectus rhoncus odio phasellus, tristique, nisi ultricies aliquet, sit magna cursus dolor.
Velit! Odio? Aenean est ultricies. Tortor adipiscing urna ridiculus cras enim dignissim ac aliquam scelerisque quis sit a ac, eu turpis pid odio mattis. Odio in in tincidunt massa.
Integer? Enim augue et, ultricies? Integer nunc odio, elit pellentesque tincidunt? Quis amet augue ridiculus, natoque nec platea porttitor? Tempor aliquet non, dolor, sed ultrices dignissim duis, mauris, augue.
</div>
<!-- <button>×</button> -->
</div>
<div id="slider2" class="slider">
Hello World!!ddd
<!-- <button>×</button> -->
</div>
<button id="trigger">Slide it</button>
</div>
</div>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
* {
box-sizing: content-box;
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*! slidereveal - v1.1.2 - 2016-05-16
* https://github.com/nnattawat/slidereveal
* Copyright (c) 2016 Nattawat Nonsung; Licensed MIT */
/*! slidereveal - v1.1.1 - 2016-03-04
* https://github.com/nnattawat/slidereveal
* Copyright (c) 2016 Nattawat Nonsung; Licensed MIT */
(function ($) {
// Private attributes and method
var getPadding = function($el, side) {
var padding = $el.css('padding-' + side);
return padding ? +padding.substring(0, padding.length - 2) : 0;
};
var sidePosition = function($el) {
var paddingLeft = getPadding($el, 'left');
var paddingRight = getPadding($el, 'right');
return ($el.width() + paddingLeft + paddingRight) + "px";
};
var SlideReveal = function($el, options) {
// Define default setting
var setting = {
width: 250,
push: true,
position: "left",
speed: 300, //ms
trigger: undefined,
autoEscape: true,
show: function(){},
shown: function(){},
hidden: function(){},
hide: function(){},
top: 0,
overlay: false,
"zIndex": 1049,
overlayColor: 'rgba(0,0,0,0.5)'
};
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: