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

326
Views
Is there a way to make divs into different shapes

I am trying to create two divs (one on top half of page and the other on the bottom half) that look like teeth. The idea is that the top and bottom mouth piece divs will open and close with the scroll of the mouse and reveal the website content. Any idea how to make the each div look like a set of teeth? Would it be easier to just use an image of the teeth and do it like that?

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

0

You can add clip-path to two divs for the purpose

Code example

  .jaw {
    height: 100%;
    width: 100%;
    position: fixed;
    background: white;
  }
  .bottom {
    bottom: 0;
  }
  .top {
    clip-path: polygon(
      0% 0%,
      0% 80%,
      20% 20%,
      33% 80%,
      50% 20%,
      66% 80%,
      80% 20%,
      100% 80%,
      100% 0
    );
  }
  .bottom {
    clip-path: polygon(
      0% 100%,
      0% 80%,
      20% 20%,
      33% 80%,
      50% 20%,
      66% 80%,
      80% 20%,
      100% 80%,
      100% 100%
    );
  }
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!