• Variante pour Henri

    En reprenant le code de "pour Henri", on peut réaliser une variante où le survol d'une section fait pivoter les 3 autres sections correspondantes.

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     


    Voici un premier jet, en brut de fonderie: 4 images en 800x600px; les boutons sont invisibles et placés sur chaque section.

    <div style="width: 800px; height: 600px; border: 4px solid grey; background: url('http://ekladata.com/udT-a91y1onmJ_y6ozd5odfAwzk/hump.jpg'); margin: 5px auto;">
    <p id="bt1">&nbsp;</p>
    <p id="bt2">&nbsp;</p>
    <p id="bt3">&nbsp;</p>
    <p id="bt4">&nbsp;</p>
    <p id="f1">&nbsp;</p>
    <p id="f1a">&nbsp;</p>
    <p id="f1b">&nbsp;</p>
    <p id="f1c">&nbsp;</p>
    <p id="f2">&nbsp;</p>
    <p id="f2a">&nbsp;</p>
    <p id="f2b">&nbsp;</p>
    <p id="f2c">&nbsp;</p>
    <p id="f3">&nbsp;</p>
    <p id="f3a">&nbsp;</p>
    <p id="f3b">&nbsp;</p>
    <p id="f3c">&nbsp;</p>
    <p id="f4">&nbsp;</p>
    <p id="f4a">&nbsp;</p>
    <p id="f4b">&nbsp;</p>
    <p id="f4c">&nbsp;</p>
    </div>
    <style><!--
    #bt1{position:absolute; z-index:5; width:200px; height:600px; transform:translate(0px,0px);}
    #bt2{position:absolute; z-index:5; width:200px; height:600px; transform:translate(200px,0px);}
    #bt3{position:absolute; z-index:5; width:200px; height:600px; transform:translate(400px,0px);}
    #bt4{position:absolute; z-index:5; width:200px; height:600px; transform:translate(600px,0px);}


    #f1{position:absolute; z-index:1; transition:all 1s linear; transform:translate(0px,0px) rotatey(0deg); width:200px; height:600px; background:url(http://ekladata.com/LBVSB5VPG5140ZHd1jUUEiKrHig.jpg); background-position:0% 0%; backface-visibility: hidden;}
    #f1a{position:absolute; z-index:1; transition:all 1s linear; transform:translate(200px,0px) rotatey(180deg); width:200px; height:600px; background:url(http://ekladata.com/LBVSB5VPG5140ZHd1jUUEiKrHig.jpg); background-position:33.3% 0%; backface-visibility: hidden;}
    #f1b{position:absolute; z-index:1; transition:all 1s linear; transform:translate(400px,0px) rotatey(180deg); width:200px; height:600px; background:url(http://ekladata.com/LBVSB5VPG5140ZHd1jUUEiKrHig.jpg); background-position:66.6% 0%; backface-visibility: hidden;}
    #f1c{position:absolute; z-index:1; transition:all 1s linear; transform:translate(600px,0px) rotatey(180deg); width:200px; height:600px; background:url(http://ekladata.com/LBVSB5VPG5140ZHd1jUUEiKrHig.jpg); background-position:100% 0%; backface-visibility: hidden;}

    #f2{position:absolute; z-index:1; transition:all 1s linear; transform:translate(0px,0px) rotatey(180deg);width:200px; height:600px; background:url(http://ekladata.com/wGqSWjkbwIaPTNvuU0qdwYyk-2Y.jpg); background-position:0% 0%; backface-visibility: hidden;}
    #f2a{position:absolute; z-index:1; transition:all 1s linear; transform:translate(200px,0px) rotatey(0deg);width:200px; height:600px; background:url(http://ekladata.com/wGqSWjkbwIaPTNvuU0qdwYyk-2Y.jpg); background-position:33.3% 0%; backface-visibility: hidden;}
    #f2b{position:absolute; z-index:1; transition:all 1s linear; transform:translate(400px,0px) rotatey(180deg);width:200px; height:600px; background:url(http://ekladata.com/wGqSWjkbwIaPTNvuU0qdwYyk-2Y.jpg); background-position:66.6% 0%; backface-visibility: hidden;}
    #f2c{position:absolute; z-index:1; transition:all 1s linear; transform:translate(600px,0px) rotatey(180deg);width:200px; height:600px; background:url(http://ekladata.com/wGqSWjkbwIaPTNvuU0qdwYyk-2Y.jpg); background-position:100% 0%; backface-visibility: hidden;}

    #f3{position:absolute; z-index:1; transition:all 1s linear; transform:translate(0px,0px) rotatey(180deg);width:200px; height:600px; background:url(http://ekladata.com/wwoKLkdCaZAJHlUAKxK33dMbhbU.jpg); background-position:0% 0%; backface-visibility: hidden;}
    #f3a{position:absolute; z-index:1; transition:all 1s linear; transform:translate(200px,0px) rotatey(180deg);width:200px; height:600px; background:url(http://ekladata.com/wwoKLkdCaZAJHlUAKxK33dMbhbU.jpg); background-position:33.3% 0%; backface-visibility: hidden;}
    #f3b{position:absolute; z-index:1; transition:all 1s linear; transform:translate(400px,0px) rotatey(0deg);width:200px; height:600px; background:url(http://ekladata.com/wwoKLkdCaZAJHlUAKxK33dMbhbU.jpg); background-position:66.6% 0%; backface-visibility: hidden;}
    #f3c{position:absolute; z-index:1; transition:all 1s linear; transform:translate(600px,0px) rotatey(180deg);width:200px; height:600px; background:url(http://ekladata.com/wwoKLkdCaZAJHlUAKxK33dMbhbU.jpg); background-position:100% 0%; backface-visibility: hidden;}

    #f4{position:absolute; z-index:1; transition:all 1s linear; transform:translate(0px,0px) rotatey(180deg);width:200px; height:600px; background:url(http://ekladata.com/spgWSAERgBX0wsC4jMeEe8_J-EQ.jpg); background-position:0% 0%; backface-visibility: hidden;}
    #f4a{position:absolute; z-index:1; transition:all 1s linear; transform:translate(200px,0px) rotatey(180deg);width:200px; height:600px; background:url(http://ekladata.com/spgWSAERgBX0wsC4jMeEe8_J-EQ.jpg); background-position:33.3% 0%; backface-visibility: hidden;}
    #f4b{position:absolute; z-index:1; transition:all 1s linear; transform:translate(400px,0px) rotatey(180deg);width:200px; height:600px; background:url(http://ekladata.com/spgWSAERgBX0wsC4jMeEe8_J-EQ.jpg); background-position:66.6% 0%; backface-visibility: hidden;}
    #f4c{position:absolute; z-index:1; transition:all 1s linear; transform:translate(600px,0px) rotatey(0deg);width:200px; height:600px; background:url(http://ekladata.com/spgWSAERgBX0wsC4jMeEe8_J-EQ.jpg); background-position:100% 0%; backface-visibility: hidden;}

    #bt1:hover ~ #f1a{z-index:5; transform:translate(200px,0px) rotatey(0deg);}
    #bt1:hover ~ #f1b{z-index:5; transform:translate(400px,0px) rotatey(0deg);}
    #bt1:hover ~ #f1c{z-index:5; transform:translate(600px,0px) rotatey(0deg);}

    #bt2:hover ~ #f2{z-index:5; transform:translate(0px,0px) rotatey(0deg);}
    #bt2:hover ~ #f2b{z-index:5; transform:translate(400px,0px) rotatey(0deg);}
    #bt2:hover ~ #f2c{z-index:5; transform:translate(600px,0px) rotatey(0deg);}

    #bt3:hover ~ #f3{z-index:5; transform:translate(0px,0px) rotatey(0deg);}
    #bt3:hover ~ #f3a{z-index:5; transform:translate(200px,0px) rotatey(0deg);}
    #bt3:hover ~ #f3c{z-index:5; transform:translate(600px,0px) rotatey(0deg);}

    #bt4:hover ~ #f4{z-index:5; transform:translate(0px,0px) rotatey(0deg);}
    #bt4:hover ~ #f4a{z-index:5; transform:translate(200px,0px) rotatey(0deg);}
    #bt4:hover ~ #f4b{z-index:5; transform:translate(400px,0px) rotatey(0deg);}
    --></style>