Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

103
Views
How to Animate Active Tabs

how does one animate tabs so like when you click the tab it slides in

i've tried the transition code

here's what i have so far

        [data-tab-info] {
            display: none;
        }

        .active[data-tab-info] {
            display: block;
        }

        .tab-content {
            font-size: 30px;
            font-family: sans-serif;
            font-weight: bold;
        }

        .tabs {
            font-size: 40px;
            color: black;
            display: flex;
            margin: 30px;
        }

            .tabs span {
                transition: 0.3s linear;
                background: darkred;
                padding: 10px;
                border: 5px groove gray;
                border-radius: 5px;
            }

                .tabs span:hover {
                    background: firebrick;
                    cursor: url(https://cur.cursors-4u.net/cursors/cur-3/cur283.ani), url(http://www.rw-designer.com/cursor-download.php?id=58443), auto !important;
                    color: black;
                }

thanks, in advance

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Use :action instead of :hover for action on click. Within that you can set the actions you want to happen on click.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!