lrsjng / jquery-fracs

jQuery plugin to determine the visible fractions of HTML elements.

Home Page:https://larsjung.de/jquery-fracs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Outline like Sublime

opened this issue · comments

Hello, this is another question.

I spent more than 3 hours digging into the code to achieve something I need but could not achieve this. I'm pretty sure there will come other users who expect to simulate sublime sidebar.

#outline { position: fixed; top:0; height:100%; width: 200px; }

$("#outline").fracs("outline", { crop: true, styles: [ { selector: '.item', fillStyle: 'rgb(230,230,230)' }, { selector: 'h1', fillStyle: 'rgb(240,140,060)' } ] });

this is my configuration.

.items are appended when I scroll down.
And when this happens outline becomes nor blurry nor shrinks (depending how I style #outline)

Can it be used to preserve width of canvas and scroll view of canvas while scrolling body

Hope I explained my question well, else say so and I'll try to make a jsFiddle