Halli Hallo,
ich bin ganz frisch im Forum, habe aber jetzt auf die schnelle keine Antwort auf mein spezifisches Problem gefunden.
Ich habe auf meiner Seite eine Galerie, welche mit kleinen Vorschaubildern gespickt ist. Fährt man nun über diese Vorschaubilder, blenden diese ab und ein Text erscheint über dem Bild. Klickt man auf ein Bild, wird dieses Groß, die Seite "verdunkelt sich" und man kann durch alle Bilder klicken.
Wie diese Mouseover Funktion funktioniert habe ich schon verstanden doch nun hätte ich gerne, dass ein Text auch beim Mouseover über das große Bild erscheint.
Sprich: Ich klick aufs Vorschaubild - sehe das große - fahre mit der Maus über das große Bild - nun erscheint ein Text und das Bild dunkelt sich ab wie beim Vorschaubild.
Hier mal ein Auszug:
HTML:
<div class="img-wrapper">
<a data-gal href="./images/page4-img1_original.jpg"> // Orignialbild - wird beim klick angezeigt
<img src="./images/page4-img1.jpg" alt=""/> // Vorschaubild
<span class="overlay-gallery"></span>
<div class="hover"><span class="fa fa-search-plus"></span>
<h5>Vorschaubild Text</h5>
</div>
</a>
CSS:
a[data-gal] {
display: inline-block;
position: relative;
float: left;
width: 33.3333334%;
}
a[data-gal] .overlay-gallery {
display: block;
background: rgba(0, 0, 0, 0);
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
-webkit-transition: all 0.3s ease;
transition: all 0.3s ease;
}
.ie8 a[data-gal] .overlay-gallery {
background: none;
-ms-filter: progid
XImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#00000000');
filter: progid
XImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#00000000');
zoom: 1;
}
a[data-gal] .hover {
left: 0;
top: 50%;
right: 0;
margin-top: -74px;
text-align: center;
position: absolute;
visibility: hidden;
}
a[data-gal] .hover span {
display: inline-block;
font-size: 60px;
line-height: 60px;
color: #d3695c;
margin-bottom: 25px;
-webkit-transition: all 0.1s ease;
transition: all 0.1s ease;
}
a[data-gal] .hover h5 {
padding: 0 50px;
}
@media (min-width: 768px) and (max-width: 979px) {
a[data-gal] .hover h5 {
padding: 0 10px;
}
}
@media (max-width: 767px) {
a[data-gal] .hover h5 {
display: none;
}
}
@media (max-width: 767px) {
a[data-gal] .hover {
margin-top: -30px;
}
}
a[data-gal]:hover .overlay-gallery {
background: rgba(0, 0, 0, 0.5);
}
.ie8 a[data-gal]:hover .overlay-gallery {
background: none;
-ms-filter: progid
XImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#80000000');
filter: progid
XImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#80000000');
zoom: 1;
}
a[data-gal]:hover .hover {
visibility: visible;
}
@media (max-width: 767px) {
a[data-gal] {
width: 50%;
}
}
@media (max-width: 479px) {
a[data-gal] {
width: 100%;
}
}
.page {
overflow: hidden;
}
Ich hoffe, damit kann jemand etwas anfangen.
Für eine Hilfe wäre ich sehr dankbar.
Gruß,
Mr.Blatt
ich bin ganz frisch im Forum, habe aber jetzt auf die schnelle keine Antwort auf mein spezifisches Problem gefunden.
Ich habe auf meiner Seite eine Galerie, welche mit kleinen Vorschaubildern gespickt ist. Fährt man nun über diese Vorschaubilder, blenden diese ab und ein Text erscheint über dem Bild. Klickt man auf ein Bild, wird dieses Groß, die Seite "verdunkelt sich" und man kann durch alle Bilder klicken.
Wie diese Mouseover Funktion funktioniert habe ich schon verstanden doch nun hätte ich gerne, dass ein Text auch beim Mouseover über das große Bild erscheint.
Sprich: Ich klick aufs Vorschaubild - sehe das große - fahre mit der Maus über das große Bild - nun erscheint ein Text und das Bild dunkelt sich ab wie beim Vorschaubild.
Hier mal ein Auszug:
HTML:
<div class="img-wrapper">
<a data-gal href="./images/page4-img1_original.jpg"> // Orignialbild - wird beim klick angezeigt
<img src="./images/page4-img1.jpg" alt=""/> // Vorschaubild
<span class="overlay-gallery"></span>
<div class="hover"><span class="fa fa-search-plus"></span>
<h5>Vorschaubild Text</h5>
</div>
</a>
CSS:
a[data-gal] {
display: inline-block;
position: relative;
float: left;
width: 33.3333334%;
}
a[data-gal] .overlay-gallery {
display: block;
background: rgba(0, 0, 0, 0);
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
-webkit-transition: all 0.3s ease;
transition: all 0.3s ease;
}
.ie8 a[data-gal] .overlay-gallery {
background: none;
-ms-filter: progid

filter: progid

zoom: 1;
}
a[data-gal] .hover {
left: 0;
top: 50%;
right: 0;
margin-top: -74px;
text-align: center;
position: absolute;
visibility: hidden;
}
a[data-gal] .hover span {
display: inline-block;
font-size: 60px;
line-height: 60px;
color: #d3695c;
margin-bottom: 25px;
-webkit-transition: all 0.1s ease;
transition: all 0.1s ease;
}
a[data-gal] .hover h5 {
padding: 0 50px;
}
@media (min-width: 768px) and (max-width: 979px) {
a[data-gal] .hover h5 {
padding: 0 10px;
}
}
@media (max-width: 767px) {
a[data-gal] .hover h5 {
display: none;
}
}
@media (max-width: 767px) {
a[data-gal] .hover {
margin-top: -30px;
}
}
a[data-gal]:hover .overlay-gallery {
background: rgba(0, 0, 0, 0.5);
}
.ie8 a[data-gal]:hover .overlay-gallery {
background: none;
-ms-filter: progid

filter: progid

zoom: 1;
}
a[data-gal]:hover .hover {
visibility: visible;
}
@media (max-width: 767px) {
a[data-gal] {
width: 50%;
}
}
@media (max-width: 479px) {
a[data-gal] {
width: 100%;
}
}
.page {
overflow: hidden;
}
Ich hoffe, damit kann jemand etwas anfangen.
Für eine Hilfe wäre ich sehr dankbar.
Gruß,
Mr.Blatt