Skip to content

Commit 01ce2eb

Browse files
committed
Add CSS over effects on jcarousel-thumb worl map
1 parent 1fc652e commit 01ce2eb

1 file changed

Lines changed: 73 additions & 2 deletions

File tree

template/osm-map2.tpl

100644100755
Lines changed: 73 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,74 @@ html, body {
137137
#jcarousel-img {
138138
cursor: pointer;
139139
}
140+
/*PIC*/
141+
.pic {
142+
height: 40px;
143+
width: 40px;
144+
overflow: hidden;
145+
margin: 0px;
146+
border: 1px solid white;
147+
148+
-webkit-box-shadow: 5px 5px 5px #111;
149+
box-shadow: 5px 5px 5px #111;
150+
float: left;
151+
}
152+
153+
.pic:hover {
154+
cursor: pointer;
155+
}
156+
/*MORPH*/
157+
.morph {
158+
-webkit-transition: all 0.5s ease;
159+
-moz-transition: all 0.5s ease;
160+
-o-transition: all 0.5s ease;
161+
-ms-transition: all 0.5s ease;
162+
transition: all 0.5s ease;
163+
}
164+
165+
.morph:hover {
166+
border-radius: 50%;
167+
-webkit-transform: rotate(360deg);
168+
-moz-transform: rotate(360deg);
169+
-o-transform: rotate(360deg);
170+
-ms-transform: rotate(360deg);
171+
transform: rotate(360deg);
172+
}
173+
174+
a.tooltips {
175+
position: relative;
176+
display: inline;
177+
}
178+
a.tooltips span {
179+
position: absolute;
180+
width:140px;
181+
color: #FFFFFF;
182+
background: #000000;
183+
height: 30px;
184+
line-height: 30px;
185+
text-align: center;
186+
visibility: hidden;
187+
border-radius: 6px;
188+
}
189+
a.tooltips span:after {
190+
content: '';
191+
position: absolute;
192+
top: 100%;
193+
left: 50%;
194+
margin-left: -8px;
195+
width: 0; height: 0;
196+
border-top: 8px solid #000000;
197+
border-right: 8px solid transparent;
198+
border-left: 8px solid transparent;
199+
}
200+
a:hover.tooltips span {
201+
visibility: visible;
202+
opacity: 0.8;
203+
bottom: 30px;
204+
left: 50%;
205+
margin-left: -76px;
206+
z-index: 999;
207+
}
140208

141209
#dialog {
142210
font-family: Arial,Helvetica,sans-serif;
@@ -179,8 +247,10 @@ html, body {
179247
<div class="jcarousel-wrapper" id="jcarousel-wrapper" style="max-width: 0px;">
180248
<div class="jcarousel">
181249
<ul id="jcarousel-thumb">
182-
<!-- <li><img src="http://placehold.it/40x40&text=FooBar1" alt="FooBar1"></li> -->
183-
<!-- <li><img src="http://placehold.it/40x40&text=FooBar2" alt="FooBar2"></li> -->
250+
<!-- <li><img class="morph pic" src="http://placehold.it/40x40&text=FooBar1"><span>FooBar1</span></a></li> -->
251+
<!-- <li><img src="http://placehold.it/40x40&text=FooBar2" alt="FooBar2"></li> -->
252+
<!-- <li><img class="morph pic" src="http://placehold.it/40x40&text=FooBar3"></li> -->
253+
<!-- <li class="tooltips"><img class="morph pic" src="http://placehold.it/40x40&text=FooBar3"><span>FooBar4</span></li> -->
184254
</ul>
185255
</div>
186256

@@ -344,6 +414,7 @@ function toggle(arrow)
344414
img_elem.setAttribute("width","40");
345415
img_elem.setAttribute("height","40");
346416
img_elem.setAttribute("onclick","OnThumbClick("+i+")");
417+
img_elem.setAttribute("class","morph pic");
347418
img_elem.src = pathurl;
348419
document.getElementById("jcarousel-thumb").appendChild(li_elem).appendChild(img_elem);
349420
nb_items++;

0 commit comments

Comments
 (0)