File: D:/HostingSpaces/SBogers10/straffer.komma.nl/wwwroot/js/circleAnimation.js
/**
* Created by Pascal on 16/03/16.
*/
$(function () {
var tempHeight = 0;
resizeAbout();
$(window).resize(function () {
resizeAbout();
});
$(window).scroll(function () {
if (isElementPartExtraInViewport($('.person'), 100)) {
$('.person').addClass('show');
}
if (isElementFullInViewport($('.circle .container'))) {
$('.circle').addClass('show');
resizeAbout();
}
});
// $('.services-blocks .block').click(function () {
// $(this).toggleClass('clicked');
// });
function resizeAbout() {
if ($('.circle .container').length > 0) {
var svg = $('.circle .container svg')[0];
$('.circle .container').height(svg.getBoundingClientRect().height);
// tempHeight = 0;
// $('.services-blocks .block').css('height', 'initial');
// $('.services-blocks .block').each(function () {
// if ($(this).height() > tempHeight) {
// tempHeight = $(this).height();
// }
// });
// $('.services-blocks .block').height(tempHeight);
}
}
});