Skip to content
Discussion options

You must be logged in to vote

I've tried several solutions, and failed, that's why I asked whether it was possible.
Turns out, I was overwriting my own CSS by mistake, and that's what caused the issue. My knowledge in CSS is limited to say the best.
The solution that I ended up using, for future reference, is

// Add keyframes for rotation animation
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(180deg);
  }
}

// Apply the rotation animation to the dropdown toggle when it is shown
.navbar-nav .nav-link.dropdown-toggle.show::after {
  animation: rotate 0.5s ease-in-out;
  transform: rotate(180deg);
}

// Ensure the dropdown toggle rotates back when not shown
.navbar-nav .nav-…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@jpmvferreira
Comment options

Answer selected by jpmvferreira
@mcanouil
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
html Issues with HTML and related web technology (html/css/scss/js) themes Related to HTML theming or any other style related issue (like highlight-style)
2 participants