{"id":16512,"date":"2015-08-10T05:01:41","date_gmt":"2015-08-09T19:01:41","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/ITblog\/?p=16512"},"modified":"2015-08-09T16:28:52","modified_gmt":"2015-08-09T06:28:52","slug":"slideshow-animation-via-image-visibility-primer-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/slideshow-animation-via-image-visibility-primer-tutorial\/","title":{"rendered":"Slideshow Animation via Image Visibility Primer Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/slideshow_via_invisibility_and_fade.php\"><img decoding=\"async\" style=\"float:left; border: 15px solid pink;\" alt=\"Slideshow Animation via Image Visibility Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/PHP\/slideshow_via_invisibility_and_fade.jpg\" title=\"Slideshow Animation via Image Visibility Primer Tutorial\"  \/><\/a><p class=\"wp-caption-text\">Slideshow Animation via Image Visibility Primer Tutorial<\/p><\/div>\n<p>Today&#8217;s tutorial extends the &#8220;overlay&#8221; idea presented yesterday with <a target=_blank title='WordPress Blog Search Within Search Overlay Tutorial' href='https:\/\/www.rjmprogramming.com.au\/ITblog\/wordpress-blog-search-within-search-overlay-tutorial\/'>WordPress Blog Search Within Search Overlay Tutorial<\/a> where, you might remember, we had three HTML elements, one visible and the rest invisible, and we &#8220;overlayed&#8221; (in quotes, because the technique does not need the CSS <a target=_blank title='CSS position property information from w3schools' href='http:\/\/www.w3schools.com\/cssref\/pr_class_position.asp'>&#8220;position:absolute&#8221;<\/a> property to work) by changing which one was visible at any given time (and at any given time, only one is visible).<\/p>\n<p>Today&#8217;s tutorial takes the image data from <a target=_blank title='Developing Black and White Photos Primer Tutorial' href='https:\/\/www.rjmprogramming.com.au\/ITblog\/developing-black-and-white-photos-primer-tutorial\/'>Developing Black and White Photos Primer Tutorial<\/a> as a good candidate to use with PHP&#8217;s <a target=_blank title='PHP glob() method information' href='http:\/\/php.net\/manual\/en\/function.glob.php'>glob()<\/a> method we discussed last when we presented <a target=_blank title='PHP Modularization for Lighthouses in Australia Tutorial' href='https:\/\/www.rjmprogramming.com.au\/ITblog\/php-modularization-for-lighthouses-in-australia-tutorial\/'>PHP Modularization for Lighthouses in Australia Tutorial<\/a>.<\/p>\n<p>The images of this tutorial are &#8220;relatively&#8221; stacked into a table cell and take their turns at being the visible one to create the slideshow animation feel to our resultant <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/slideshow_via_invisibility_and_fade.php\" title='Slideshow live run'>presentation<\/a>.<\/p>\n<p>Some other concepts we&#8217;ve visited today with PHP source code you could call <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/slideshow_via_invisibility_and_fade.php_GETME\" title='slideshow_via_invisibility_and_fade.php'>slideshow_via_invisibility_and_fade.php<\/a> are &#8230;<\/p>\n<ul>\n<li>homemade Javascript image fading via controlling the image (HTML img tag) CSS <a target=_blank title='CSS opacity property information from w3schools' href='http:\/\/www.w3schools.com\/cssref\/css3_pr_opacity.asp'>opacity<\/a> property via an independent <a target=_blank title='Javascript setTimeout method information from w3schools' href='http:\/\/www.w3schools.com\/jsref\/met_win_settimeout.asp'>setTimeout<\/a> controlled Javascript function<\/li>\n<li>using the HTML <a target=_blank title='HTML meter element information from w3schools' href='http:\/\/www.w3schools.com\/tags\/tag_meter.asp'>meter<\/a> element&#8217;s <a target=_blank title='Javascript onclick event information from w3schools' href='http:\/\/www.w3schools.com\/jsref\/event_onclick.asp'>onclick<\/a> event to turn it into more than a display, but rather a user means to adapt the presentation &#8230; believe me, there are many other ways to achieve this, and this is just an idea for you to mull over &#8230; maybe you remember that last time we talked about the HTML meter element at <a target=_blank href='https:\/\/www.rjmprogramming.com.au\/ITblog\/htmljavascript-staged-animation-meter-presentation-tutorial\/' title='HTML\/Javascript Staged Animation Meter Presentation Tutorial'>HTML\/Javascript Staged Animation Meter Presentation Tutorial<\/a><\/li>\n<li>CSS rotation (of an HTML <a target=_blank title='HTML div element information from w3schools' href='http:\/\/www.w3schools.com\/tags\/tag_div.asp'>div<\/a> element) which we talked about previously with <a target=_blank href='https:\/\/www.rjmprogramming.com.au\/ITblog\/css3-rotation-and-transformation-primer-tutorial\/' title='CSS3 3D Rotation and Transformation Primer Tutorial'>CSS3 3D Rotation and Transformation Primer Tutorial<\/a> &#8230; why? &#8230; well, the HTML meter we wanted to control the &#8220;position:absolute; top:70px;&#8221; of (ie. leave the &#8220;left&#8221; property relative), so that we could calibrate the user&#8217;s click from a known top Y co-ordinate, along with the known length of the HTML meter element (which we specify)<\/li>\n<li>the wording to go with the images garnered from the web via PHP&#8217;s <a target=_blank title='PHP file_get_contents() method information' href='http:\/\/php.net\/manual\/en\/function.file-get-contents.php'>file_get_contents()<\/a> method<\/li>\n<\/ul>\n<p>Hope this topic is of interest to you, or of practical benefit for something you are trying &#8230; it is a topic where cross-browser and cross-platform thoughts could be very important as to how you proceed.<\/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='#d16512' onclick='var dv=document.getElementById(\"d16512\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/?tag=overlay\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d16512' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Today&#8217;s tutorial extends the &#8220;overlay&#8221; idea presented yesterday with WordPress Blog Search Within Search Overlay Tutorial where, you might remember, we had three HTML elements, one visible and the rest invisible, and we &#8220;overlayed&#8221; (in quotes, because the technique does &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/slideshow-animation-via-image-visibility-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,1662,429,1615,590,652,861,876,894,932,980,997,1072,1151,1319],"class_list":["post-16512","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-fade","tag-file_get_contents","tag-glob","tag-image","tag-javascript","tag-onclick","tag-opacity","tag-overlay","tag-php","tag-presentation","tag-programming","tag-rotation","tag-slideshow","tag-tutorial"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/16512"}],"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=16512"}],"version-history":[{"count":8,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/16512\/revisions"}],"predecessor-version":[{"id":16520,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/16512\/revisions\/16520"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=16512"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=16512"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=16512"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}