![]() So if an element is pushed back, a translation of 400px will cause the element to only move 300px on the screen. This achieves both effects of making things appear smaller when they are farther back and also makes them “move slower” when being translated. The perspective matrix is a matrix that “pulls” points closer to the vanishing point the further back in 3D space they are. If we scroll down by 400px, all elements need to be moved up by 400px. The scroll matrix is a translation along the y axis. If the perspective element is scrollable, apply a scroll matrix. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |