

Here is the link to the starting branch Grab that and get ready to code. If you want you can also learn about Git and branching & commit history but only if you work with my Github repo. Adjust the function to use % for large screens and screen size for smaller screens.Īnd in part 3 we will make it work on mobile touch screens and learn about how hover acts on touch screens.
Hider 2 reveal how to#
Responsive design and how to get images to respond to browser resizing.Make responsive for mobile to desktop (part 2b) Turn off events in the Window using the window variable.Add Hover to the image to show the handle.Adding a "handle" to "click and drag".It is in the order that certain features and functionality that were needed became apparent: Let's look at what we will learn in this article. Never fear, however, as you will learn stuff that can be used elsewhere and this article series is more about problem-solving and the steps taken to arrive at a solution. I will explain what I mean in the review so make sure you read to the end.Īlso, the code hasn't been fully tested across all browsers and devices. However, this will not be a final version as I feel that a full re-factor could be done or at least explore a little further. By the end of part 3, we will have a working version. In this second part, we will look at developing a usable version for desktop and in part 3 we will tackle mobile and in particular touch screens. I versioned it 0.1 to indicate it's at such an early stage. This for me, and I would say a lot of developers, is a common way to work on a problem. After part one of this series we had a basic proof of concept but as such not a working solution. This article is part 2 of a 3 part series on building an image slide and reveal viewer as illustrated below.
