D3 Force graph + voronoi trianguation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .animated{-webkit-animation-fill-mode:both;-moz-animation-fill-mode:both;-ms-animation-fill-mode:both;-o-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:1s;-moz-animation-duration:1s;-ms-animation-duration:1s;-o-animation-duration:1s;animation-duration:1s;}.animated.hinge{-webkit-animation-duration:1s;-moz-animation-duration:1s;-ms-animation-duration:1s;-o-animation-duration:1s;animation-duration:1s;}@-webkit-keyframes shake { | |
| 0%, 100% {-webkit-transform: translateX(0);} 10%, 30%, 50%, 70%, 90% {-webkit-transform: translateX(-10px);} | |
| 20%, 40%, 60%, 80% {-webkit-transform: translateX(10px);} | |
| } | |
| @-moz-keyframes shake { | |
| 0%, 100% {-moz-transform: translateX(0);} | |
| 10%, 30%, 50%, 70%, 90% {-moz-transform: translateX(-10px);} | |
| 20%, 40%, 60%, 80% {-moz-transform: translateX(10px);} | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @city_fact = CityFact.new(city: @city, | |
| text: params[:text], | |
| position: params[:position], | |
| fact_type: params[:fact_type], | |
| icon_id: params[:icon_id]) |
NewerOlder