{"id":34023,"date":"2017-10-29T03:01:40","date_gmt":"2017-10-28T17:01:40","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/ITblog\/?p=34023"},"modified":"2017-10-29T13:54:03","modified_gmt":"2017-10-29T03:54:03","slug":"css3-transition-primer-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/css3-transition-primer-tutorial\/","title":{"rendered":"CSS3 Transition Primer Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/css3_transitions.html\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"CSS3 Transition Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/\/HTMLCSS\/css3_transitions.jpg\" title=\"CSS3 Transition Primer Tutorial\"  style=\"float:left;\" \/><\/a><p class=\"wp-caption-text\">CSS3 Transition Primer Tutorial<\/p><\/div>\n<p>The <a target=_blank title='CSS3 specification information from w3schools' href='https:\/\/www.w3schools.com\/css\/css3_intro.asp'>CSS3<\/a> (Cascading Style Sheet) specification introduced <a target=_blank title='CSS3 Transitions information from w3schools' href='https:\/\/www.w3schools.com\/css\/css3_transitions.asp'>&#8220;Transitions&#8221;<\/a> to CSS styling of web pages.  A CSS3 &#8220;transition&#8221; &#8230;<\/p>\n<blockquote cite='https:\/\/www.w3schools.com\/css\/css3_transitions.asp'><p>\nCSS3 transitions allows you to change property values smoothly (from one value to another), over a given duration.\n<\/p><\/blockquote>\n<p>Today, we use the CSS <a target=_blank title='CSS hover selector' href='https:\/\/www.w3schools.com\/cssref\/sel_hover.asp'><i>:hover<\/i><\/a> selector as the basis for transitions in our <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/css3_transitions.html\">live run<\/a>&#8216;s <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/css3_transitions.html_GETME\" title=\"css3_transitions.html\">css3_transitions.html<\/a> HTML and CSS source code.<\/p>\n<p>As you might surmise using this web application, CSS3 &#8220;Transitions&#8221; can act like simple animations.<\/p>\n<p><b><\/i>Stop Press<\/i><\/b><\/p>\n<p>The CSS <a target=_blank title='CSS hover selector' href='https:\/\/www.w3schools.com\/cssref\/sel_hover.asp'><i>:hover<\/i><\/a> selector is not a &#8220;good fit&#8221; (euphemism for &#8220;it doesn&#8217;t work, Bud!&#8221;) on mobile platforms.  Looking around the &#8220;net&#8221; got to this <a target=_blank title='Great link, thanks' href='https:\/\/stackoverflow.com\/questions\/22559756\/changing-hover-to-touch-click-for-mobile-devices'>great link<\/a>, thanks, which suggested adding <i>onlick=&#8221;&#8221;<\/i> on all relevant <a target=_blank title='CSS hover selector' href='https:\/\/www.w3schools.com\/cssref\/sel_hover.asp'><i>:hover<\/i><\/a> selector HTML elements, to allow for (and it only really makes sense when the real <i>onclick<\/i> event meaning is not needed) the <i>onclick<\/i> event to be simulating the <i>onmouseover<\/i> event, for those mobile platforms missing the real <i>onmouseover<\/i> event.<\/p>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d34023' onclick='var dv=document.getElementById(\"d34023\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/css\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d34023' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>The CSS3 (Cascading Style Sheet) specification introduced &#8220;Transitions&#8221; to CSS styling of web pages. A CSS3 &#8220;transition&#8221; &#8230; CSS3 transitions allows you to change property values smoothly (from one value to another), over a given duration. Today, we use the &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/css3-transition-primer-tutorial\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,12,14,37],"tags":[84,281,282,576,795,861,871,2377,1953,1200,2378,1319],"class_list":["post-34023","post","type-post","status-publish","format-standard","hentry","category-animation","category-elearning","category-event-driven-programming","category-tutorials","tag-animation-2","tag-css","tag-css3","tag-html","tag-mobile","tag-onclick","tag-onmouseover","tag-programmig","tag-selector","tag-stop-press","tag-transition","tag-tutorial"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/34023"}],"collection":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/comments?post=34023"}],"version-history":[{"count":3,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/34023\/revisions"}],"predecessor-version":[{"id":34041,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/34023\/revisions\/34041"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=34023"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=34023"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=34023"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}