Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>sss-example</title>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
<script src="sss/sss.min.js"></script>
<link rel="stylesheet" href="sss/sss.css" type="text/css" media="all">

<script>
jQuery(function($) {
$('.slider').sss();
});
</script>
</head>
</head>
<body>
<div class="slider">
<img src="http://placehold.it/920x50" />
<img src="http://placehold.it/920x100" />
<img src="http://placehold.it/920x150" />
<img src="http://placehold.it/920x200" />
<img src="http://placehold.it/920x250" />
<img src="http://placehold.it/920x300" />
<img src="http://placehold.it/920x350" />
<img src="http://placehold.it/920x400" />
</div>
</body>
</html>
Binary file modified sss/images/arr.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 5 additions & 24 deletions sss/sss.css
Original file line number Diff line number Diff line change
@@ -1,30 +1,13 @@
.sss {
height: 0;
margin: 0;
padding: 0;
position: relative;
display: block;
overflow: hidden;

}

.ssslide {
width: 100%;
margin: 0;
padding: 0;
position: absolute;
top: 0;
left: 0;
display: none;
overflow: hidden;

}

.ssslide img {
max-width: 100%;
height: auto;
margin: 0;
padding: 0;
position: relative;
display: block;

}

.sssnext, .sssprev {
Expand All @@ -37,13 +20,11 @@
}

.sssprev {
left: 3%;
background-position: 0 50%;

}

.sssnext {
right: 3%;
background-position: -26px 50%;

}

.sssprev:hover, .sssnext:hover {
Expand Down