Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tailwind css translate-y-full does not work

Here is an original code from compiled TailwindCSS file:

.translate-y-full {
  --transform-translate-y: 100%; 
}

It does not work. The syntax of CSS is incorrect. When I changed it to:

.translate-y-full {
  transform: translateY(100%);
  /* --transform-translate-y: 100%; */
}

It started to work.

Maybe I am missing something but it seems to be bug and a big one...???

like image 539
IVN Avatar asked Dec 14 '20 16:12

IVN


2 Answers

Add transform to the classes.

<img class="transform translate-y-full" ...>

like image 161
Marlon Avatar answered Sep 22 '22 11:09

Marlon


Maybe you forgot to put this line below in your css codes

@tailwind base;
like image 43
Amirreza Zarkesh Avatar answered Sep 25 '22 11:09

Amirreza Zarkesh