Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 653d868

Browse files
committed
CSS zoom
1 parent fc6492a commit 653d868

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

sphinx_gallery/_static/gallery.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,11 +210,19 @@ ul.sphx-glr-horizontal img {
210210
.sphx-glr-single-img {
211211
margin: auto;
212212
display: block;
213+
max-width: 100%;
214+
transition: transform .2s;
213215
}
214216

215217
.sphx-glr-multi-img {
216218
max-width: 42%;
217219
height: auto;
220+
transition: transform .2s;
221+
}
222+
223+
.sphx-glr-single-img:hover, .sphx-glr-multi-img:hover {
224+
transform: scale(1.5);
225+
z-index: 200;
218226
}
219227

220228
p.sphx-glr-signature a.reference.external {

0 commit comments

Comments
 (0)