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

147
Views
Rotate an arrow in HTML from a specific point

I've figured out how to draw an arrow and rotate it:

     .arrow:after {
       content: "";
       display: inline-block !important;
       width: 0;
       height: 0;
       border-left: 8px solid white;
       border-top: 8px solid transparent;
       border-bottom: 8px solid transparent;
       vertical-align: middle;

     }

     .arrow:before {
       width: 75px;
       height: 2px;
       background: white;
       content: "";
       display: inline-block;
       vertical-align: middle;
     }


   <div style="transform: rotate(-60deg)";><span class="arrow"></span></div>

But it rotates around the center, whereas I would want it to rotate from the bottom, for example, if you imagine an arrow at coordinates (0,0), I want it to always start at (0,0) but vary its endpoint.

In this link they manage it with one arrow but I can't seem to only get the one rotating arrow.

Any help is appreciated, thanks!

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

0

under transform: rotate() add:

transform-origin: 0% 0%;

then change the percentages till they match where you want the rotate point to be

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!