上記のソースから、複数表示のLuminousGalleryを使用した画像拡大をしたいのですが、下記の参考サイトで紹介されてるような拡大表示時の画像送りができません。
現状のソース
HTML
1<!-- head--> 2<link rel="stylesheet" media="screen, projection" href="css/luminous-basic.css"> 3<!-- 省略--> 4<div class="Box"> 5 <a href="https://placehold.jp/600x600.png" class="boxImg"><img src="https://placehold.jp/300x300.png" alt=""></a> 6 <a href="https://placehold.jp/600x600.png" class="boxImg"><img src="https://placehold.jp/300x300.png" alt=""></a> 7 <a href="https://placehold.jp/600x600.png" class="boxImg"><img src="https://placehold.jp/300x300.png" alt=""></a> 8</div> 9<!-- 省略--> 10
JS
1// HTML下部に設置 2<script src="js/luminous.min.js"></script> 3<script> 4 var luminousTrigger = document.querySelectorAll('.boxImg'); 5 new LuminousGallery(luminousTrigger); 6</script>
提供されたcss内に画像送り用の指定はあるようなのですが、そのソースが上記ですと出てこないようで、どのように設置したら良いのか、教えていただけますとうれしいです。よろしくお願いします。
luminous
1.lum-gallery-button { 2 overflow: hidden; 3 text-indent: 150%; 4 white-space: nowrap; 5 background: transparent; 6 border: 0; 7 margin: 0; 8 padding: 0; 9 outline: 0; 10 position: absolute; 11 top: 50%; 12 transform: translateY(-50%); 13 height: 100px; 14 max-height: 100%; 15 width: 60px; 16 cursor: pointer; 17} 18 19.lum-previous-button { 20 left: 12px; 21} 22 23.lum-next-button { 24 right: 12px; 25} 26 27.lum-gallery-button:after { 28 content: ""; 29 display: block; 30 position: absolute; 31 top: 50%; 32 width: 36px; 33 height: 36px; 34 border-top: 4px solid rgba(255, 255, 255, 0.8); 35} 36 37.lum-previous-button:after { 38 transform: translateY(-50%) rotate(-45deg); 39 border-left: 4px solid rgba(255, 255, 255, 0.8); 40 box-shadow: -2px 0 rgba(0, 0, 0, 0.2); 41 left: 12%; 42 border-radius: 3px 0 0 0; 43} 44 45.lum-next-button:after { 46 transform: translateY(-50%) rotate(45deg); 47 border-right: 4px solid rgba(255, 255, 255, 0.8); 48 box-shadow: 2px 0 rgba(0, 0, 0, 0.2); 49 right: 12%; 50 border-radius: 0 3px 0 0; 51}
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/10/05 01:37 編集