Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

132
Vistas
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 Respuestas
Responde la pregunta

0

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

about 4 years ago · Juan Pablo Isaza Denunciar

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda