Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

136
Visualizações
Transition animation does not works properly on Safari

I used CSS transition for create the Fade Up animation effect. Here is the code:

.animation-up{
    opacity: 0;
    -webkit-transform: translateY(100px);
    -ms-transform: translateY(100px);
    transform: translateY(100px);
    -webkit-transition: opacity 1s ease;
    -o-transition: opacity 1s ease;
    transition: opacity 1s ease;
    -webkit-transition: -webkit-transform .6s ease;
    transition: -webkit-transform .6s ease;
    -o-transition: transform .6s ease;
    transition: transform .6s ease;
    transition: transform .6s ease,-webkit-transform .6s ease;
 }
 
.animation-up.active {
    opacity: 1;
    -webkit-transform: translate(0);
    -ms-transform: translate(0);
    transform: translate(0);
 }

For addding active to the block I used:

function animations() {
    
    appear({
        elements: function elements(){
            return document.getElementsByClassName('appear');
        },
        appear: function appear(el){
            var item = $(el);
            item.addClass('active');
        },
        bounds: 0,
        reappear: true
    });
}

And this animation works well on Firefox, Opera, and of course Chrome. But there is some issue on iPhone. Here is example: https://gyazo.com/1bd0bdb42fd7d043b404cd868b35e90b as you can see the block Fade Up but after disappears and reappears. Maybe the JavaScript cause the issue?

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

There are multiple transition css properties and the last one will overwrite thr previouse ones. You can comma seperate the transition targets like this:

transition: width 2s, height 4s;

So in your example it would be

-webkit-transition: opacity 1s ease, transform .6s ease;
-o-transition: opacity 1s ease, transform .6s ease;
transition: opacity 1s ease, transform .6s ease;
about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda