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

120
Vistas
Add transition animation when Bootstrap flex element is moved by creation of sibling

I have a simple HTML & Bootstrap element initiation as follows:

        <div class="container-fluid d-flex g-0 gap-3" id="map-div">
            <div class="row-fluid d-flex g-0 justify-content-around" id="map-row">
                <div class="d-flex g-0" id="map-col">
                    <svg id="map-svg"></svg>
                </div>
            </div>
        </div>

enter image description here

In my JavaScript, under certain conditions I add a sibling to the map-col as follows:

legend = d3.select("#map-row").insert("div")
    .attr("id", "legend-col")
    .attr("class", "g-0 fade-in shadow lh-sm")
    .style("height", "80%")
    .style("align-self", "center")

enter image description here

Is there a simple way (maybe with Bootstrap tags?) to animate the map-col transition to its new location without explicit specification, akin to "data-mdb-animation": "slide-left"?

about 4 years ago · Juan Pablo Isaza
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