« HTML/Bouton zoom » : différence entre les versions
Aller à la navigation
Aller à la recherche
(Page créée avec « <source lang="html"> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Test image animée</title> <style> h1 { background: #44f;... ») |
mAucun résumé des modifications |
||
Ligne 1 : | Ligne 1 : | ||
Page d'exemple avec l'image suivante [[:File:logo kono phil.svg]] | |||
<source lang="html"> | <source lang="html"> | ||
<!DOCTYPE html> | <!DOCTYPE html> |
Version du 15 juin 2021 à 21:28
Page d'exemple avec l'image suivante File:logo kono phil.svg
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Test image animée</title> <style> h1 { background: #44f; color: white; padding: .25em; } #bouton { display: flex; flex-wrap: nowrap; } #bouton > div { margin: 10px; } .google, .glpi, .konoburo { box-sizing: border-box; transition: transform .2s; padding-left: 1em; width: 200px; transform: scale(0.95); } .google:hover, .glpi:hover, .konoburo:hover { transform: scale(1); } </style> </head> <body> <h1>Bouton avec image zoomée au survol</h1> <div id="bouton"> <div class="google"><a href="#""><img src="img/wiki.png" /></a></div> <div class="glpi"><a href="#""><img src="img/wiki.png" /></a></div> <div class="konoburo"><a href="#""><img src="img/wiki.png" /></a></div> </div> </body> </html>