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

mongodb - Struggling to get ordered results from the last retrieved article, given array of elements to search in -

c# - Pausing a storyboard on TabItem mouse over -

c# - Attribute value in root node of xml Linq to XML -