create account

Geeking out with a barefoot poet - Edition 1 - Building a Responsive, Animated Map for Location/Contact Page with CSS and jQuery by abarefootpoet

View this thread on: hive.blogpeakd.comecency.com
· @abarefootpoet ·
$20.68
Geeking out with a barefoot poet - Edition 1 - Building a Responsive, Animated Map for Location/Contact Page with CSS and jQuery
<html>
<p>I'm starting a little mini-series to sort of geek out over what I do for a living...front-end development.</p>
<p>That being said, I can't take credit for the actual design behind most of what I develop. &nbsp;I work with extremely talented designers and they provide me comps, tell me how they want or imagine it animating, etc, and I develop it collaboratively with them.</p>
<p>In this first series I'll share what I did to create a location/contact page for a client who we wanted to really delight with the designer's concept...a contact page that represented the client's global presence using a world map with blinking dots, that displayed a small tip with the location image and address on hover, and provided a modal (lightbox) on click.</p>
<p><img src="https://i.imgsafe.org/bf88c2b45f.png" width="1112" height="598"/></p>
<p>Annnnd, make it mobile responsive. &nbsp;Many people develop for mobile first. &nbsp;I do sometimes. &nbsp;I'm pretty diverse in my approach depending on the specific needs and goals of the client, including their target audience.</p>
<p>So in this case it was designed desktop first, but easily mobile accessible, while maintaining the delight of the map. &nbsp;In other words, we didn't want to just display a list of locations on mobile, we wanted to make it just as nice and cool on both.</p>
<p>Annnnd, Annnnnd, also provide a nice list of the locations that the visitor can toggle to from the map view if they'd rather.</p>
<p>Now what I wanted to do is not just have the modal fade in, or slide in, or whatever...I wanted it to zoom in from the actual blinking location dot the visitor was clicking on, so they knew they got the right one...but also because it's just way nicer and cooler to do so.</p>
<p>And then I wanted it to zoom back into that same dot when the visitor exits the modal view.</p>
<p>To make the map usable on mobile, the designer and I realized we needed to have zoom functionality on the actual map, separate from the page...</p>
<p>What I ended up developing out was zoom buttons on mobile and the ability to slide the map around independently from any other page element.</p>
<p>What can see the jsfiddle of part of this creation...the remaining code I did on the live site, so you'll see it there in the next link.</p>
<p><a href="https://jsfiddle.net/johnoliverwestbrook/tvera2f1/">Here's the jsfiddle</a></p>
<p>Again, that's the jsfiddle and I didn't complete the code or buildout there, so div content on the tooltips is hidden on some, etc...see the live site for the finished product, but I wanted to give you an easier eye into the code behind it through the jsfiddle.</p>
<p>Particularly how the blinking dots are achieved and positioned, and how they fire off.</p>
<p><strong>Now, for the finished product:</strong></p>
<p><a href="http://www.koretelematics.com/contact-us">http://www.koretelematics.com/contact-us</a></p>
<p>The flashing dots are achieved using a CSS animation combining transform scale of a div behind a div, and opacity levels...giving it a nice "pulsate" feel.</p>
<p>The "randomness" to their pulsing isn't random at all, but a simple jQuery setTimeout function adding the "pulse" class that fires the animation, at different times on document load.</p>
<p>I could go into further details on how this all is accomplished, but I mostly want to use these posts to share something, share the code, and then have it open for discussion or just inspiration to others out there who are coding something and looking for new ideas or how to solve some weird little specific thing they are trying to achieve.</p>
<p>Hope you like this new little series and get something valuable from it! &nbsp;</p>
<p>Let me know your thoughts!</p>
<p>Next Edition I'll be sharing how to create a transparent circle that draws in itself on hover, and fades out on mouseleave. &nbsp;If you know jQuery you already know it's involved ;) but surprisingly not much at all!</p>
<p>If you want to read more of my posts, mostly I do poetry, feel free to follow me @abarefootpoet</p>
<p>Thanks for reading.</p>
<p>~ J Oliver Westbrook</p>
<p><br></p>
</html>
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 108 others
👎  
properties (23)
authorabarefootpoet
permlinkgeeking-out-with-a-barefoot-poet-edition-1-building-a-responsive-animated-map-for-location-contact-page-with-css-and-jquery
categorytechnology
json_metadata{"tags":["technology","website","life","development","webdev"],"users":["abarefootpoet"],"image":["https://i.imgsafe.org/bf88c2b45f.png"],"links":["https://jsfiddle.net/johnoliverwestbrook/tvera2f1/","http://www.koretelematics.com/contact-us"],"app":"steemit/0.1","format":"html"}
created2017-01-28 01:53:00
last_update2017-01-28 01:53:00
depth0
children2
last_payout2017-02-28 02:41:33
cashout_time1969-12-31 23:59:59
total_payout_value15.609 HBD
curator_payout_value5.069 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length4,137
author_reputation11,169,391,118,897
root_title"Geeking out with a barefoot poet - Edition 1 - Building a Responsive, Animated Map for Location/Contact Page with CSS and jQuery"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id2,361,822
net_rshares53,526,965,168,732
author_curate_reward""
vote details (173)
@eric-boucher ·
As you also seemed to be excited about, the zooming in and out as you enter and leave the dot toward and away from the location is pretty darn cool in deed! Thanks for sharing and keep up the good work, Steem on, namaste   :)
👍  ,
properties (23)
authoreric-boucher
permlinkre-abarefootpoet-geeking-out-with-a-barefoot-poet-edition-1-building-a-responsive-animated-map-for-location-contact-page-with-css-and-jquery-20170128t030910163z
categorytechnology
json_metadata{"tags":["technology"],"app":"steemit/0.1"}
created2017-01-28 03:09:09
last_update2017-01-28 03:09:09
depth1
children1
last_payout2017-02-28 02:41:33
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length225
author_reputation68,503,601,066,539
root_title"Geeking out with a barefoot poet - Edition 1 - Building a Responsive, Animated Map for Location/Contact Page with CSS and jQuery"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id2,362,129
net_rshares75,230,967,292
author_curate_reward""
vote details (2)
@abarefootpoet ·
Thanks!
👍  
properties (23)
authorabarefootpoet
permlinkre-eric-boucher-re-abarefootpoet-geeking-out-with-a-barefoot-poet-edition-1-building-a-responsive-animated-map-for-location-contact-page-with-css-and-jquery-20170128t031034979z
categorytechnology
json_metadata{"tags":["technology"],"app":"steemit/0.1"}
created2017-01-28 03:10:36
last_update2017-01-28 03:10:36
depth2
children0
last_payout2017-02-28 02:41:33
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length7
author_reputation11,169,391,118,897
root_title"Geeking out with a barefoot poet - Edition 1 - Building a Responsive, Animated Map for Location/Contact Page with CSS and jQuery"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id2,362,132
net_rshares2,425,981,651
author_curate_reward""
vote details (1)