Completed

Front End Developer - Correção Css - Jquery - Fixação Div

Published on the June 30, 2016 in IT & Programming

About this project

Open

Estou implementando um site para um cliente e encontrei uma dificuldade, na qual preciso corrigir o tamanho de uma DIV, que muda de acordo com a rolagem da página. A idéia principal é apenas fixar a DIV ao utilizar o Scroll.

Site: http://flf.net.br/site/curso/graduacao/administracao/

DIV: Caixa Mais informações à direita da tela;

JQuery:
var sticky = $('.dados-curso');
    var origOffsetY = sticky.offset().top;

    function onScroll(e) {
        window.scrollY >= origOffsetY ? sticky.addClass('fixed') : sticky.removeClass('fixed');
    }

    document.addEventListener('scroll', onScroll);

CSS:
.fixed {
  position: fixed;
  top: 0;
  padding: 0;
}

Category IT & Programming
Subcategory Web design
Is this a project or a position? Project
I currently have I have specifications
Required availability As needed
Experience in this type of projects Yes (I have managed this kind of project before)
API Integrations Other (Other APIs)
Specific need Update a website

Delivery term: July 01, 2016

Skills needed

Other projects posted by M. Q.