{"id":3839,"date":"2014-11-28T10:47:45","date_gmt":"2014-11-28T12:47:45","guid":{"rendered":"http:\/\/blog.turbosite.com.br\/?p=3839"},"modified":"2014-11-28T10:47:45","modified_gmt":"2014-11-28T12:47:45","slug":"incriveis-animacoes-com-css","status":"publish","type":"post","link":"https:\/\/www.turbosite.com.br\/blog\/incriveis-animacoes-com-css\/","title":{"rendered":"Incr\u00edveis Anima\u00e7\u00f5es com CSS"},"content":{"rendered":"<p>Esta postagem \u00e9 baseada na p\u00e1gina <a href=\"http:\/\/www.justinaguilar.com\/animations\/index.html#how\">Justinaguilar<\/a>. Com este plugin CSS, voc\u00ea poder\u00e1 animar suas p\u00e1ginas de forma profissional e encantadora.&nbsp;Vale a pena conferir.<\/p>\n<p>A forma de utilizar \u00e9 muito simples, basta adicionar o arquivo css animation e inserir a classe ao objeto que deve ser animado, exemplo:<\/p>\n<p>Inser\u00e7\u00e3o do CSS das anima\u00e7\u00f5es:<\/p>\n<pre class=\"lang:xhtml decode:true\">&lt;link rel=\"stylesheet\" href=\"css\/animations.css\"&gt;<\/pre>\n<p>Adicionando classe ao objeto que ser\u00e1 animado:<\/p>\n<pre class=\"lang:php decode:true\">&lt;div id=\"object\" class=\"slideUp\"&gt;<\/pre>\n<p>Abaixo voc\u00ea pode conferir o resultado das anima\u00e7\u00f5es, clique nos links para ver os diversos efeitos:<\/p>\n<p><iframe loading=\"lazy\" src=\"\/\/jsfiddle.net\/pv4zg3sw\/2\/embedded\/result\/\" width=\"100%\" height=\"500\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p>CSS:<br \/>\n<iframe loading=\"lazy\" src=\"\/\/jsfiddle.net\/pv4zg3sw\/2\/embedded\/css\/\" width=\"100%\" height=\"500\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p>Javascript:<br \/>\n<iframe loading=\"lazy\" src=\"\/\/jsfiddle.net\/pv4zg3sw\/2\/embedded\/js\/\" width=\"100%\" height=\"500\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p>Html:<br \/>\n<iframe loading=\"lazy\" src=\"\/\/jsfiddle.net\/pv4zg3sw\/2\/embedded\/html\/\" width=\"100%\" height=\"500\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p>Para fazer com que a anima\u00e7\u00e3o seja ativada quando o usu\u00e1rio ver o item, voc\u00ea deve colocar este c\u00f3digo em Javascript e css, sendo que, deve ser carregado o Jquery antes:<\/p>\n<p>CSS:<\/p>\n<pre class=\"lang:css decode:true \">#object{\n\tbackground-color: #fe5652;\n\tvisibility: hidden;\n}<\/pre>\n<p>JS:<\/p>\n<pre class=\"lang:js decode:true \">&lt;script&gt;\n\t$(window).scroll(function() {\n\t\t$('#animatedElement').each(function(){\n\t\tvar imagePos = $(this).offset().top;\n\n\t\tvar topOfWindow = $(window).scrollTop();\n\t\t\tif (imagePos &lt; topOfWindow+400) {\n\t\t\t\t$(this).addClass(\"slideUp\");\n\t\t\t}\n\t\t});\n\t});\n&lt;\/script&gt;<\/pre>\n<p>Para ver o exemplo, acessem este <a href=\"http:\/\/www.justinaguilar.com\/animations\/scrolling.html\">LINK<\/a>.<\/p>\n<p>Esperamos que tenham gostado e aprendido, d\u00favidas e sugest\u00f5es deixem nos coment\u00e1rios, isto incentiva-nos a sempre compartilhar conhecimento cada vez mais!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Com este plugin de CSS, voc\u00ea poder\u00e1 animar sua p\u00e1gina de forma profissional e encantadora. D\u00ea dinamismo e ao mesmo tempo um toque sutil de modernidade ao seu site.<\/p>\n","protected":false},"author":1,"featured_media":3847,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,6],"tags":[43,157,180,184,331,361],"class_list":["post-3839","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-css-2","category-dicas","tag-animacao-css","tag-css3","tag-destaque","tag-dica-turbosite","tag-html","tag-javascript-2"],"_links":{"self":[{"href":"https:\/\/www.turbosite.com.br\/blog\/wp-json\/wp\/v2\/posts\/3839","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.turbosite.com.br\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.turbosite.com.br\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.turbosite.com.br\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.turbosite.com.br\/blog\/wp-json\/wp\/v2\/comments?post=3839"}],"version-history":[{"count":0,"href":"https:\/\/www.turbosite.com.br\/blog\/wp-json\/wp\/v2\/posts\/3839\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.turbosite.com.br\/blog\/wp-json\/wp\/v2\/media\/3847"}],"wp:attachment":[{"href":"https:\/\/www.turbosite.com.br\/blog\/wp-json\/wp\/v2\/media?parent=3839"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.turbosite.com.br\/blog\/wp-json\/wp\/v2\/categories?post=3839"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.turbosite.com.br\/blog\/wp-json\/wp\/v2\/tags?post=3839"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}