siliding image css and html only -


i want pic slide left , top side , and not straight foward, using css , html without javascript.

and there simple code take make "dropdown" li go down , push rest of categories?

thanks fot helping guys !

nav{      background-color: #fff;      width:150px;      height: 667px;      float:right;  }    nav h1{      padding: 20px;      color: #777;      font: 20px tahoma,times,serif;    }  ul {   position: relative;   margin: 0;   padding: 0;   list-style: none;   width: 150px;   text-align: right;   }  ul li {   position: relative;   }  li ul {   position: absolute;   right: 149px;   top: 0;   display: none;   }  ul li {   display: block;   text-decoration: none;   color: #777;   background: #fff;   padding: 5px;     border-bottom: 0;   }  ul {   margin: 0;   padding: 0;   list-style: none;   width: 150px;     }  li:hover ul {       display: block;  }    * {      margin: 0;      padding: 0;  }  body {      background: #333;      background: url("images/3.jpg");      background-repeat: no-repeat;  }    .container{      overflow: hidden;      margin-right: 0;      height: 500px;       -webkit-box-shadow: 10px 10px 10px rgba(0,0,0,0.3);      box-shadow: 10px 10px 10px rgba(0,0,0,0.3);      width: 800px;  }  .container img{      margin-top: 0px auto;      position: absolute;      top: 0px;      left: 0px;      z-index: -60;  }  .container li img {      margin-top: 0px auto;      position: absolute;      left: 600px auto;      z-index: -50;      -webkit-transition: 1s ease;      -moz-transition: 1s ease;      -o-transition: 1s ease;      -ms-transition: 1s ease;      transition: 1s ease;     }    li:nth-child(1){      padding-top: 0px;  }    li a:hover {      background: #eee;  }    li a:hover + img {      position: absolute;      margin-top: 0px auto;      left: -667px;  }
<!doctype html>    <html lang="en">      <head>          <meta charset="utf-8" />          <link rel=stylesheet type="text/css" href="stylesheet.css"/>          <title></title>      </head>      <body>          <div class="container">          <nav><h1><b>text</b></h1>    <ul>    <li><a href="#">text</a><img src="http://media3.fcbarcelona.com/media/asset_publics/resources/000/160/456/size_640x360/pic_2015-01-11_barcelona-atletico_45.v1431011244.jpg" alt="1"></li>     <li><a href="#">text</a><img src="https://encrypted-tbn2.gstatic.com/images?q=tbn:and9gctd6ngnngapdlhqds4kbuonncaaump4svu-e_9rxmh_wldtppse" alt="1">        <ul>         <li><a href="#">text</a></li>         <li><a href="#">text</a></li>         <li><a href="#">text</a></li>         </ul>              </li>     <li><a href="#">text</a><img src="http://static3.demotix.com/sites/default/files/imagecache/a_scale_large/2000-5/photos/1368393557-club-atletico-de-madrid-v-fc-barcelona--la-liga_2046465.jpg" alt="1">         <ul>         <li><a href="#">text</a></li>         <li><a href="#">text</a></li>         <li><a href="#">text</a></li>         <li><a href="#">text</a></li>          </ul>       </li>    <li><a href="#">text</a><img src="http://barcelonacamps.com/wp-content/uploads/2014/04/barca-new-team.jpg" alt="1">         <ul>         <li><a href="#">text</a></li>         <li><a href="#">text</a></li>         <li><a href="#">text</a></li>         <li><a href="#">text</a></li>         </ul>         </ul>      </li>               </nav>          </div>       </body>  </html>

the website

not sure understand you're trying achieve, check out codepen: image slider

if want them slide top left set top attribute , adjust how high:

li a:hover + img {     position: absolute;     margin-top: 0px auto;     left: -667px;     top: -100px; } 

can explain and there simple code take make "dropdown" li go down , push rest of categories? more though.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -