Last active
November 3, 2025 03:30
-
-
Save codigoconjuan/9cde54f7d1300bd95f108d78aef2112e to your computer and use it in GitHub Desktop.
Menú con Animaciones en WordPress
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .menu-principal a::before, | |
| .menu-principal a::after { | |
| position: absolute; | |
| left: 0; | |
| content: ''; | |
| display: block; | |
| width: 100%; | |
| height: 50%; | |
| background-color: var(--primario); | |
| z-index: -1; | |
| transform: scaleX(0); | |
| transition: transform .6s; | |
| } | |
| .menu-principal a::before { | |
| top: 0; | |
| transform-origin: left; | |
| } | |
| .menu-principal a::after { | |
| top:50%; | |
| transform-origin: right; | |
| } | |
| .menu-principal a:hover::before { | |
| transform: scaleX(1); | |
| } | |
| .menu-principal a:hover::after { | |
| transform: scaleX(1); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment