I'm using ITCSS for my latest project.
The layers of the triangle are the follows:
Taken from https://dev.to/carlillo/understanding-itcss-real-case-using-itcss-in-a-ghostcms-blog-1p9b
but where do I put my css animations?
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
1 and 2 must not generate CSS therefore I expect number 3 (Generic) is the right section?
Can anyone confirm?
If the animation is used multiple places define it in the Object layer.
If you are using a preprossor and create animations for different components put it in the Tools layer.
If its a one time only animation it should be placed in the Component layer