News for hackers. Stuff that matters.
Re:Is it possible to apply CSS to half of a character? by habosa on Monday May 12, 2014 @01:35PM (#7734160)
I've never seen such polished and thorough answers to a question like this. One answer (not even the accepted answer) made a plugin and a beautiful website to go along with it: http://emisfera.github.io/Splitchar.js/

Pretty amazing that our tools are getting so good that someone can quickly whip up an open-source plugin and splashy, hosted website for a SO answer.

Re:Is it possible to apply CSS to half of a character? by smackfu on Monday May 12, 2014 @04:40PM (#7735292)
You can see the revision history: http://stackoverflow.com/posts/23569710/revisions

For a popular question like this, it's kind of like an arms race to see who can get the top answer. People keep one-upping themselves.

Re:Is it possible to apply CSS to half of a character? by sytelus on Tuesday May 13, 2014 @01:58AM (#7736723)
Slow down before you give too much credit to tools. Guy has put lot of work in "whipping" up a beautiful website. Much of this seems to be hand coded. Example: https://github.com/emisfera/Splitchar.js/commits/gh-pages/in...
Re:Is it possible to apply CSS to half of a character? by habosa on Tuesday May 13, 2014 @10:53AM (#7738404)
I wasn't saying it wasn't hand coded, I meant tools like Github pages and JSFiddle and syntax highlighters and all of the things that allow us to move so quickly from prototype to publish.
Re:Is it possible to apply CSS to half of a character? by StavrosK on Monday May 12, 2014 @02:51PM (#7734659)
How do people make sites this beautiful for a small plug in? Is there a framework, like Bootstrap 3 or something? How does it work?
Re:Is it possible to apply CSS to half of a character? by dsilver on Monday May 12, 2014 @04:23PM (#7735215)
This one in particular uses the jQuery onepage-scroll plugin [0] for the scrolling effects, prism.js [1] for code syntax highlighting and some plain HTML and CSS. Here's the complete code: https://github.com/emisfera/Splitchar.js/tree/gh-pages.

In reference to some other comments on this thread, this isn't built using Jekyll. GitHub pages supports pure static sites and Jekyll-powered sites if you put either on the gh-pages branch of the repository.

[0] https://github.com/peachananr/onepage-scroll [1] http://prismjs.com/

Re:Is it possible to apply CSS to half of a character? by StavrosK on Monday May 12, 2014 @07:20PM (#7735950)
You're right, thanks. I'm finally home and managed to look at the source, it doesn't use Bootstrap. The author built it all from scratch. Kudos to him.
Re:Is it possible to apply CSS to half of a character? by kibibu on Tuesday May 13, 2014 @12:02AM (#7736550)
I didn't even realize it scrolled until I saw your comment and went back.
Re:Is it possible to apply CSS to half of a character? by coldpie on Tuesday May 13, 2014 @08:28AM (#7737766)
Hiding your content below the scroll and having a single, tiny, ambiguous, low-contrast visual indicator that more information is below seems to be "the in thing" in web design in 2014.
Re:Is it possible to apply CSS to half of a character? by justinpaulson on Monday May 12, 2014 @02:56PM (#7734701)
It's a github page, so it is probably using jekyll...http://jekyllrb.com/
Re:Is it possible to apply CSS to half of a character? by StavrosK on Monday May 12, 2014 @03:01PM (#7734742)
Isn't Jekyll more for blogs? Also, Github pages are just static HTML, why is Jekyll more probable?
Re:Is it possible to apply CSS to half of a character? by justinpaulson on Monday May 12, 2014 @03:11PM (#7734805)
I thought default for github pages was jekyll now...

It was originally more for blogs but it can be used for lots of things. We use it to serve our style guide and API documentation.

Re:Is it possible to apply CSS to half of a character? by pjc50 on Monday May 12, 2014 @03:44PM (#7734984)
The github pages intro documentation reccomends using Jekyll; it's built in somehow.
Re:Is it possible to apply CSS to half of a character? by Cederfjard on Monday May 12, 2014 @07:27PM (#7735974)
I'm a bit confused. Here's what it looks like to me: https://imgur.com/8zSglOv

No buttons do anything when clicked, and I can't scroll. Latest Firefox and Chromium on Ubuntu. Am I missing something or is it broken for me? Can anyone show me what it's supposed to be like?

Re:Is it possible to apply CSS to half of a character? by cshenoy on Monday May 12, 2014 @07:35PM (#7735985)
You might be using HTTPS Everywhere which is blocking jQuery and some other stuff from loading since he hard coded them as a HTTP url. Try opening it up in Incognito or another browser without HTTPS.
Re:Is it possible to apply CSS to half of a character? by Cederfjard on Tuesday May 13, 2014 @05:00AM (#7737149)
That was it, I feel silly now. Thanks!
Re:Is it possible to apply CSS to half of a character? by Terretta on Monday May 12, 2014 @06:03PM (#7735672)
It appears at least in part inspired by zombo.com.
Re:Is it possible to apply CSS to half of a character? by skeletonjelly on Monday May 12, 2014 @07:21PM (#7735957)
What isn't!
Re:Is it possible to apply CSS to half of a character? by spb on Monday May 12, 2014 @02:06PM (#7734372)
Yeah, I'm looking to make a site / subreddit sometime soon that is designed around this kind of answer / solution to users' problems.
Re:Is it possible to apply CSS to half of a character? by scott_s on Monday May 12, 2014 @04:57PM (#7735376)
How would it differ from Stack Overflow? (I'm not being snarky, but asking a real question.)
Re:Is it possible to apply CSS to half of a character? by tomf64 on Monday May 12, 2014 @06:18PM (#7735720)
Maybe I'm misinterpreting but I assumed the subreddit would be a collection of answers like this instead of a place to ask them which would be super cool and helpful. Not sure if that's what's meant though.
Re:Is it possible to apply CSS to half of a character? by ibisum on Monday May 12, 2014 @02:32PM (#7734549)
sometime soon, lol!

for my part, i wonder if these guys with the deep chi on css are probably .. correct me if i'm wrong .. using the source? i.e. do you get some sort of insight by observing how css is handled, in some source somewhere, or .. how ?

Re:Is it possible to apply CSS to half of a character? by nathancahill on Monday May 12, 2014 @02:42PM (#7734610)
No, it's just combining the :before class with attr(), and then styling it with width: 50%. No secret sauce, just a creative hack.
Re:Is it possible to apply CSS to half of a character? by pjc50 on Monday May 12, 2014 @03:46PM (#7734992)
No, they just have a very thorough understanding of the box model and all the different selectors. There's quite a lot of pieces and they can interact in many ways; some people just have the right mindset to solve that puzzle.
Re:Is it possible to apply CSS to half of a character? by sanderjd on Monday May 12, 2014 @06:30PM (#7735772)
Is there a good advanced css book (or other long-form resource), or do you just have to read specs at this level? I feel like I have "known" CSS reasonably well for quite some time, but have never attained the level of depth it takes to really grok all the ways the puzzle pieces interact with one another.
Re:Is it possible to apply CSS to half of a character? by josephschmoe on Monday May 12, 2014 @04:03PM (#7735096)
Github post came up the next day actually. He's done a couple commits too.

Who am I kidding? It's still awesome...