From 721e32b5cea97930cc96fba3b4bf295935943c0b Mon Sep 17 00:00:00 2001 From: Eden Halperin Date: Tue, 12 Nov 2013 11:12:28 -0500 Subject: [PATCH] Add marker halo animation styles --- app/assets/stylesheets/leaflet-all.css.scss | 31 +++++++++++++++++++++ app/views/browse/new_note.html.erb | 2 +- 2 files changed, 32 insertions(+), 1 deletion(-) diff --git a/app/assets/stylesheets/leaflet-all.css.scss b/app/assets/stylesheets/leaflet-all.css.scss index 10ad2607a..18febde4d 100644 --- a/app/assets/stylesheets/leaflet-all.css.scss +++ b/app/assets/stylesheets/leaflet-all.css.scss @@ -25,3 +25,34 @@ div.leaflet-marker-icon.location-filter.move-marker { .site .leaflet-popup p { margin: 0 0 20px 0; } + +img.leaflet-marker-icon:after { + content:''; + position:absolute; left:50%; top:50%; + margin:-30px 0 0 -30px; + width:59px; + height:59px; + display:block; + background:rgba(0,0,0,0.2); + border:2px solid rgba(0,0,0,0.6); + border-radius:50%; + opacity:0; + -webkit-animation:place-tmp 2000ms infinite; + -moz-animation:place-tmp 2000ms infinite; + animation:place-tmp 2000ms infinite; + @-webkit-keyframes place-tmp { + 0% { opacity:1; -webkit-transform:scale(0); } + 50% { opacity:0; -webkit-transform:scale(1); } + 100% { opacity:0; -webkit-transform:scale(1); } + } + @-moz-keyframes place-tmp { + 0% { opacity:1; -moz-transform:scale(0); } + 50% { opacity:0; -moz-transform:scale(1); } + 100% { opacity:0; -moz-transform:scale(1); } + } + @keyframes place-tmp { + 0% { opacity:1; transform:scale(0); } + 50% { opacity:0; transform:scale(1); } + 100% { opacity:0; transform:scale(1); } + } +} \ No newline at end of file diff --git a/app/views/browse/new_note.html.erb b/app/views/browse/new_note.html.erb index 09af23edc..ae8262867 100644 --- a/app/views/browse/new_note.html.erb +++ b/app/views/browse/new_note.html.erb @@ -6,7 +6,7 @@
-

<%= t('javascripts.notes.new.intro') %>

+

<%= t('javascripts.notes.new.intro') %>

-- 2.39.5