diff --git a/static/src/js/app.js b/static/src/js/app.js index a4915cc..80b9c3b 100644 --- a/static/src/js/app.js +++ b/static/src/js/app.js @@ -1,9 +1,12 @@ var React = require('react'); var ProjectImages = require('./components/project-images'); +window.scrollToElement = function(ident) { + $('html, body').animate({scrollTop: $(ident).offset().top}, 1000); +} + $(window).load(function(){ $(window).trigger('scroll').trigger('resize'); - var s = skrollr.init(); }); React.render(, document.getElementById('project-images')); \ No newline at end of file diff --git a/templates/index.html b/templates/index.html index c0e48c3..ae69a36 100644 --- a/templates/index.html +++ b/templates/index.html @@ -8,7 +8,7 @@

Hello, world!

Some random subtitle

-

V

+

V

@@ -20,3 +20,4 @@
{% endblock %} +; \ No newline at end of file