{"id":12758,"date":"2017-09-28T17:44:36","date_gmt":"2017-09-28T15:44:36","guid":{"rendered":"http:\/\/www.devapp.it\/wordpress\/?p=12758"},"modified":"2017-09-28T17:45:02","modified_gmt":"2017-09-28T15:45:02","slug":"animazioni-in-e-out-facili-con-dreyanim","status":"publish","type":"post","link":"https:\/\/www.devapp.it\/wordpress\/animazioni-in-e-out-facili-con-dreyanim\/","title":{"rendered":"Animazioni In e Out facili con dreyanim"},"content":{"rendered":"<p>Le animazioni hanno sempre il loro impatto sull&#8217;utente soprattutto in un ambiente dinamico come il web. La libreria che vediamo oggi si chiama <a href=\"https:\/\/github.com\/christiandrey\/dreyanim\" target=\"_blank\" rel=\"noopener\">dreyanim <\/a>\u00a0e permette di implementare animazioni In e Out in modo semplice e veloce grazie a CSS3 e jQuery.<\/p>\n<p>La sua installazione richiede l&#8217;inclusione di un foglio di stile:<\/p>\n<pre class=\"lang:xhtml decode:true \">&lt;link rel=\"stylesheet\" href=\"css\/dreyanim.css\"&gt;<\/pre>\n<p>e di due librerie Javascript (jQuery e quella specifica di dreyanim):<\/p>\n<pre class=\"lang:xhtml decode:true \">&lt;script src=\"js\/jquery-3.1.0.slim.min.js\"&gt;&lt;\/script&gt;\r\n&lt;script src=\"js\/dreyanim.js\"&gt;&lt;\/script&gt;<\/pre>\n<p>A questo punto si pu\u00f2 scegliere quale animazione attivare su un elemento e la sua durata:<\/p>\n<pre class=\"lang:js decode:true \">$('.element').dreyanim({\r\n  animationType : \"zoomIn\",\r\n  animationTime : 600\r\n})<\/pre>\n<p>Le animazioni a disposizione sono molte e si pu\u00f2 scegliere in <a href=\"https:\/\/github.com\/christiandrey\/dreyanim#animationtype\" target=\"_blank\" rel=\"noopener\">una lunga lista<\/a>.<\/p>\n<p>La libreria appare interessante soprattutto perch\u00e8 offre delle funzionalit\u00e0 leggere e utili da integrare molto velocemente. Inoltre pare che il suo sviluppo debba proseguire tanto che nella presentazione su GitHub l&#8217;autore \u00a0voglia farci intendere che la dipendenza da jQuery sia temporanea\u00a0con la frase &#8220;Depends on jQuery&#8230;for now&#8221;.<\/p>\n<p>Proviamolo e rimaniamo in attesa di novit\u00e0&#8230;alla prossima!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Le animazioni hanno sempre il loro impatto sull&#8217;utente soprattutto in un ambiente dinamico come il web. La&#8230;<\/p>\n","protected":false},"author":561,"featured_media":13260,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[481],"tags":[1864,1866,1865,1538,1481,1581],"class_list":["post-12758","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-risorse-utili","tag-animations","tag-css","tag-css3","tag-javascript","tag-jquery","tag-web"],"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.devapp.it\/wordpress\/wp-json\/wp\/v2\/posts\/12758","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devapp.it\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devapp.it\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devapp.it\/wordpress\/wp-json\/wp\/v2\/users\/561"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devapp.it\/wordpress\/wp-json\/wp\/v2\/comments?post=12758"}],"version-history":[{"count":5,"href":"https:\/\/www.devapp.it\/wordpress\/wp-json\/wp\/v2\/posts\/12758\/revisions"}],"predecessor-version":[{"id":13262,"href":"https:\/\/www.devapp.it\/wordpress\/wp-json\/wp\/v2\/posts\/12758\/revisions\/13262"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.devapp.it\/wordpress\/wp-json\/wp\/v2\/media\/13260"}],"wp:attachment":[{"href":"https:\/\/www.devapp.it\/wordpress\/wp-json\/wp\/v2\/media?parent=12758"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devapp.it\/wordpress\/wp-json\/wp\/v2\/categories?post=12758"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devapp.it\/wordpress\/wp-json\/wp\/v2\/tags?post=12758"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}