/ kaart / animaties
Met dit filter kunt u aangepaste animaties toevoegen om kaarten in een raster weer te geven.
Argument | Type | Omschrijving |
$animaties | array | Bevat geregistreerde kaartanimaties |
[pastacode lang=”php” manual=”function%20prefix_register_card_animations(%20%24animations%20)%20%7B%0A%0A%09%2F%2F%20’my_animation’%20corresponds%20to%20the%20animation%20slug.%20%0A%09%24animations%5B’my_animation’%5D%20%3D%20%5B%20%0A%09%09’name’%20%3D%3E%20__(%20’My%20Animation’%2C%20’text-domain’%20)%2C%0A%09%09’visible’%20%3D%3E%20%5B%20%0A%09%09%09’transform’%20%3D%3E%20’perspective(2000px)%20translateY(0)%20rotateY(0)%20scale(1)’%2C%0A%09%09%09’opacity’%20%3D%3E%201%2C%20%0A%09%09%5D%2C%0A%09%09’hidden’%20%3D%3E%20%5B%20’transform-origin’%20%3D%3E%20’50%25%2050%25’%2C%0A%09%09’transform’%20%3D%3E%20’perspective(2000px)%20translateY(-200px)%20rotateY(-360deg)%20scale(0.8)’%2C%20%0A%09%09’opacity’%20%3D%3E%200%2C%20%0A%09%09%5D%2C%20%0A%09%5D%3B%20%0A%0A%09return%20%24animations%3B%0A%0A%7D%0A%0Aadd_filter(%20’wp_grid_builder%2Fcard%2Fanimations’%2C%20’prefix_register_card_animations’%2C%2010%2C%201%20)%3B” message=”” highlight=”” provider=”manual”/]