css - Why does bootstrap use translate3d for their .nav-collapse -


a recent ios 7.0 bug resulted in nav menu not showing... has lead me question.

why bootstrap use translate3d on mobile styles collapsable menu?

@media (max-width: 480px) {     .nav-collapse {         -webkit-transform: translate3d(0, 0, 0);      } } 

i had override menu show on ios7.

@media (max-width: 480px) {     .nav-collapse {         -webkit-transform: none;      } } 

this forces element rendered on separate compositing layer in gpu, making animations faster.

for more information, see here


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -