Application de transform:scale(x) sur une <li> <a>
Bonjour à tous,
Je ne sais pas pourquoi mais je n'arrive pas à faire fonctionner mon scale afin qu'il me grossisse mon texte. Une idée ou j'ai merdé ???
Code HTML :
Code:
1 2 3 4 5 6 7 8 9 10 11
| <nav id="barre_sticky">
<ul>
<li><a href="#Moi">Qui suis-je ?</a></li>
<li><a href="#Portfolio">Portfolio</a></li>
<li><a href="#"></a><img class='logo' src="mm.png" /></li>
<li><a href="#tech">Technologies</a></li>
<li><a href="#Contact">Me contacter</a></li>
</ul>
<p id="hamburger"><i class="fas fa-bars"></i></p>
</nav> |
Code CSS: "Le scale s'effectue sur ul li a:hover
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
| nav {
background: white;
position:-webkit-sticky;
position:sticky;
top:0;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
max-width: 100%;
}
ul {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
margin-top: 0;
max-height:100px;
}
li {
list-style-type: none;
margin-left: 50px;
width: 100%;
}
li a {
text-decoration: none;
color: black;
font-size: 1.4em;
padding: 10px;
}
ul:hover .logo{
-webkit-transform: scale(1.2);
transform: scale(1.2);
}
ul li a:hover{
-webkit-transform: scale(1.2);
transform: scale(1.2);
} |