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

129
Views
How to use a PNG logo instead of the circle

How can I use a transparent PNG image instead of clipping the svg. Please help need a transparent PNG image instead of circle.

CodePen link

Here is the Javascript

var section = document.querySelector('section');
    window.addEventListener('scroll', function(){
    var value = window.scrollY;
    section.style.clipPath = "circle("+ value +"px at center)"
 })

Thanks!

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

0

If I understood the problem correctly, you need to change CSS section like background: url(/yourlink);

about 4 years ago · Juan Pablo Isaza Report

0

It can be through specifying height width and giving border-radius to the image .
And value change on scroll

var section = document.querySelector('section');
        window.addEventListener('scroll', function(){
        var value = window.scrollY;
        section.style.height =  value +"px"
        section.style.width = value +"px"
    })
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Segoe, "Segoe UI", "DejaVu Sans", "Trebuchet MS", Verdana, "sans-serif";
}

section {
  position: fixed;
  top: 0;
  left: 0;
  /*width: 100%;
  height: 100vh;*/
  background: url(https://www.prixgen.com/wp-content/uploads/2018/04/mission.jpg);
  background-size: contain;
  background-attachment: fixed;
  border-radius:500px;
}

.container {
  position: relative;
  margin-top: 200vh;
  background: #fff;
  padding: 100px;
}

.container h2 {
  font-size: 2.5em;
}

.title {
  position: relative;
  top: 250px;
  z-index: 1;
  font-size: 2em;
  text-align: center;
  width: 100%;
}
<!doctype html>
<html>

<head>
  <meta charset="utf-8">
  <title>Join us</title>
</head>

<body>
  <h2 class="title">Join us for Better Future</h2>
  <section></section>
  <div class="container">
  </div>
</body>

</html>

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!