I have a transition from my JS using intersection obeservor however I want the opacity of the elements and to slide in from the left and can’t seem to get them to happen at the same time, it is either one or the other… here is my code.
.fade-in {
opacity: 0;
transition: opacity 1s ease-in;
}
.fade-in.appear {
opacity: 1;
}
.from-left {
transform: translateX(-50%);
}
.from-right {
transform: translateX(50%);
}
.from-left,
.from-right {
transition: transform opacity 1s ease-in;
}
.from-left.appear,
.from-right.appear {
transform: translateX(0);
}
I’ve tried adding the opacity to the from classes nothing changed any advice is muchly appreciated!
