Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
</head>
<body>
<div id="top-iframe">― IMAGE SLIDE TEST―</div>
<div id="wrapper">
      <div class="image-container">
    <img src="http://thumbsnap.com/s/98NCoY9P.jpg" />
    <div class="image-caption caption-1">
      <h1>― 犬科動物 ―</h1>
      <p>灰狼</p>
    </div>
  </div>
  <div class="image-container ">
    <img src="http://thumbsnap.com/s/xS5duLFy.jpg" />
    <div class="image-caption caption-2">
      <h1>― 象科 ―</h1>
      <p>非洲象</p>
    </div>
  </div>
  <div class="image-container">
    <img src="http://thumbsnap.com/s/3gR7aQWx.jpg" />
    <div class="image-caption caption-3">
      <h1>― 真鹿亞科 ―</h1>
      <p>波斯黇鹿</p>
    </div>
  </div>
  <div class="image-container">
    <img src="http://thumbsnap.com/s/HT8ar678.jpg" />
    <div class="image-caption caption-4">
      <h1>― 牛科 ―</h1>
      <p>非洲水牛</p>
    </div>
  </div>
  <div class="image-container">
    <img src="<a href="http://imgbox.com/s3eRUG79" target="_blank"><img src="https://images.imgbox.com/a9/26/s3eRUG79_o.jpg" alt="image host"/></a>" />
    <div class="image-caption caption-5">
      <h1>― 犬科動物 ―</h1>
      <p>赤狐</p>
    </div>
  </div>
  <div class="image-container">
    <img src="https://images.imgbox.com/9c/0a/OjSNb0qj_o.jpg" />
    <div class="image-caption caption-6">
      <h1>― 貓科動物 ―</h1>
      <p>雲豹</p>
    </div>
  </div>
  <div class="image-container">
    <img src="https://images.imgbox.com/93/66/Lj5f7sEk_o.jpg" />
    <div class="image-caption caption-7">
      <h1>― 馬科 ―</h1>
      <p>阿拉伯馬</p>
    </div>
  </div>
  <div class="image-container">
    <img src="http://thumbsnap.com/s/oiMuXx4z.jpg" />
    <div class="image-caption caption-8">
      <h1>― 貓科動物 ―</h1>
      <p>獅子</p>
    </div>
  </div>
</div>
</body>
</html>
 
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box
}
#wrapper {
  margin-left: auto;
  margin-right: auto
  
}
#top-iframe {
  margin: 50px auto;
    font-family:微軟正黑體;
    font-size: 28pt;
    color: #6FB7B7;
    letter-spacing: 2px;
    text-align: center;
  font-weight:lighter;
  }
.image-container {
  width: calc((100% / 2) - 20px);
  height: 250px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  float: left;
  margin: 10px;
  border:solid 1px #81C0C0;
  
}
.image-container img {
  width: 100%;
  height: 100%;
  position: absolute;
}
.image-container .image-caption {
  width: 100%;
  height: 100%;
  position: absolute;
  background: rgba(0, 36, 36, 0.7);
  font-family: 微軟正黑體;
  color: #fff;
  text-align: center;
  letter-spacing:2px; 
  font-weight:lighter;
  line-height:30px; 
  text-shadow: rgb(255, 255, 255) 0px 0px 10px;
}
.image-caption h1 {
  margin-top: 110px;
  color: #fff;
  font-size:20pt;
  font-family: 微軟正黑體;
  letter-spacing:2px; 
  font-weight:lighter;
  text-shadow: rgb(255, 255, 255) 0px 0px 10px;
}
  
}
.image-caption p {
  color: #fff;
}
/* left slider */
.image-container .caption-1 {
  left: -300px;
  transition: all 0.5s;
}
.image-container:hover .caption-1 {
  left: 0;
  transition: all 0.5s;
}
/* Top slider */
.image-container .caption-2 {
  top: -300px;
  transition: all 0.5s;
}
.image-container:hover .caption-2 {
  top: 0;
  transition: all 0.5s;
}
/* bottom slider */
.image-container .caption-3 {
  bottom: -300px;
  transition: all 0.5s;
}
.image-container:hover .caption-3 {
  bottom: 0;
  transition: all 0.5s;
}
/* right slider */
.image-container .caption-4 {
  right: -400px;
  transition: all 0.5s;
}
.image-container:hover .caption-4 {
  right: 0;
  transition: all 0.5s;
}
/* top-left */
.image-container .caption-5 {
  left: -400px;
  top: -250px;
  transition: all 0.5s;
}
.image-container:hover .caption-5 {
  left: 0;
  top: 0;
  transition: all 0.5s;
}
/* top-right slider */
.image-container .caption-6 {
  right: -400px;
  top: -250px;
  transition: all 0.5s;
}
.image-container:hover .caption-6 {
  right: 0;
  top: 0;
  transition: all 0.5s;
}
/* bottom-left slider */
.image-container .caption-7 {
  left: -400px;
  bottom: -250px;
  transition: all 0.5s;
}
.image-container:hover .caption-7 {
  left: 0;
  bottom: 0;
  transition: all 0.5s;
}
/* bottom-right slider */
.image-container .caption-8 {
  right: -400px;
  bottom: -250px;
  transition: all 0.5s;
}
.image-container:hover .caption-8 {
  right: 0;
  bottom: 0;
  transition: all 0.5s;
}
body {
  background-color: #336666;
}
/* media queries */
@media (min-width: 768px ) {
  #wrapper {
    width: 1200px;
  }
  .image-container {
    width: calc((100% / 3) - 20px);
  }
}
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
ersin87pro
0viewers