반응형

http://lab.hakim.se/scroll-effects/

 

stroll.js - CSS3 scroll effects. Created by @hakimel. Tested in Chrome/Safari/FF/iOS/Android 4.x. In the mood for more CSS? Here you go.

 

  GROW

, CARDS(CSS 3D)

, CURL(CSS 3D)

, WAVE, FLIP(CSS 3D)

, FLY(CSS 3D)

, SIMPLIFIELD FLY(CSS 3D)

, REVERSE FLY(CSS 3D)

, SKEW, HELIX(CSS 3D)

, FAN

, TILT

, PAPERCUT

, ZIPPER

, FADE

, TWIRL(CSS 3D)

 

 

반응형
반응형

Compass is an open-source CSS Authoring Framework.


Why designers love Compass.

  1. Experience cleaner markup without presentational classes.
  2. It’s chock full of the web’s best reusable patterns.
  3. It makes creating sprites a breeze.
  4. Compass mixins make CSS3 easy.
  5. Create beautiful typographic rhythms.
  6. Download and create extensions with ease.

Compass uses Sass.

Sass is an extension of CSS3 which adds nested rules, variables, mixins, selector inheritance, and more. Sass generates well formatted CSS and makes your stylesheets easier to organize and maintain.


반응형
반응형

CSS Sprite Sheets: Best Practices, Tools and Helpful Applications

http://webdesign.tutsplus.com/tutorials/htmlcss-tutorials/css-sprite-sheets-best-practices-tools-and-helpful-applications/



Using CSS sprites, instead of a collection of smaller individual images, will improve your web pages’ performance and keep things more organized. Let’s take a look at some best practices and some helpful tools for your sprite-making workflow.

The name sprite might remind you of gaming sprites; retro console games and even browser-based games these days:

Angry Birds

Tools to Help

There is a massive range of tools to make your sprite sheet generation as easy as possible. When you create and design with a range of individual images, compile them all into one sprite sheet at the end – the ‘after’ method.


Here are some of the best Sprite Sheet generators:

  • Compass
    Price: Free!
    Compass includes a brilliant sprite and stylesheet generator, building the sprites from your individual images stored in a folder. Also related is Sass; a CSS preprocessor that makes your CSS clearer, more organized and easier to maintain. More info: http://enva.to/z12V70
    http://compass-style.org/
  • Lemonade
    Price: Free!
    Extremely simple and easy to use, Lemonade uses Sass as mentioned above. All you need to do is add a line of code to your Sass or SCSS Files and you’re done – a sprite is generated. However, the developers have now moved on to work on Compass and Sass – so don’t expect any updates to Lemonade anytime soon.
    http://www.hagenburger.net/BLOG/Lemonade-CSS-Sprites-for-Sass-Compass.html
  • SpriteMe
    Price: Free!
    A fantastic bookmarklet-based sprite sheet generator and viewer. It can be used to view any sprites used on any website. The best feature is that you can design your website using individual images, then run SpriteMe. It will quickly generate a sprite sheet that you can export and also generates the associated CSS for the new sprite. It even injects the sprite into the current page. If you’re used to working with individual images, this offers the easiest transition to working with sprite sheets. I’ll go into more detail about how to use SpriteMe later on.
    http://spriteme.org/
  • Fireworks CS6
    Price: Definitely not free!
    The latest version of Fireworks in Adobe’s Creative Suite includes Sprite Sheet generation.
    More info: http://enva.to/IURM73
    http://www.adobe.com/devnet/fireworks/articles/css-sprites.html


반응형
반응형

CSS, JS 모음 사이트  -  http://codevisually.com/




반응형
반응형

CSS3 word-break Property

Break words at an appropriate hyphenation point:




p.test {word-break:hyphenate;}


Syntax


word-break: normal|break-all|hyphenate;

Value Description
normal Breaks non-CJK scripts according to their own rules
break-all Lines may break between any two characters for non-CJK scripts
hyphenate Words may be broken at an appropriate hyphenation point



CSS white-space Property

Specify that the text in paragraphs will never wrap:


ex) http://www.w3schools.com/cssref/playit.asp?filename=playcss_white-space



p
{
white-space:nowrap;
}

Value Description
normal Sequences of whitespace will collapse into a single whitespace. Text will wrap when necessary. This is default
nowrap Sequences of whitespace will collapse into a single whitespace. Text will never wrap to the next line. The text continues on the same line until a <br /> tag is encountered
pre Whitespace is preserved by the browser. Text will only wrap on line breaks Acts like the <pre> tag in HTML
pre-line Sequences of whitespace will collapse into a single whitespace. Text will wrap when necessary, and on line breaks
pre-wrap Whitespace is preserved by the browser. Text will wrap when necessary, and on line breaks
inherit Specifies that the value of the white-space property should be inherited from the parent element



반응형
반응형

http://css-infos.net/ CSS 정보

반응형
반응형
@ CSS Sprites 생성도구 : http://ko.spritegen.website-performance.org/
  : 이미지 압축파일 올려주면 자동으로 만들어준다. 고마운 도구이군.

Image Sprites : http://www.w3schools.com/css/css_image_sprites.asp

An image sprite is a collection of images put into a single image.
A web page with many images can take a long time to load and generates multiple server requests.
Using image sprites will reduce the number of server requests and save bandwidth
- 무슨 말이냐고? 하나의 이미지를 사용하는 이미지 모음을 얘기하는데,
  이를 사용하는 이점은 서버로의 호출을 줄이고 대역폭을 확보하는데 있다.
  이미지 모음을 CSS로 잘라서 사용하라는 말입니다.

예제 1 : http://www.w3schools.com/css/tryit.asp?filename=trycss_sprites_img
예제 2 : http://www.w3schools.com/css/tryit.asp?filename=trycss_sprites_nav
예제 3 : http://www.w3schools.com/css/tryit.asp?filename=trycss_sprites_hover_nav

반응형
반응형
iPad에서 Portrait & Landscape 일때 적용 CSS 예제
http://catharsis.tumblr.com/post/501657271/ipad-orientation-css-revised

iPad Orientation CSS (Revised)

It doesn’t take much foresight to anticipate that with the rise of Natural User Interfaces (NUIs) like the iPhone and iPad, UI designers will have a greater responsibility to optimize for orientation-based contexts. As such, it’s quite prescient that today, the folks at Cloud Four demonstrated how to serve up stylesheets based on device orientation.

Since I have a feeling I’ll be using this quite a bit in the future, I wanted to build on Cloud Four’s work and find a way to alleviate the following issues:

  1. Extra HTTP requests
  2. Not iPad-specific
  3. Lack of reusability

So, without further ado, here’s my proposed revision to the iPad orientation CSS:

<!-- css -->
@media only screen and (max-device-width: 1024px) and (orientation:portrait) { 
    .landscape { display: none; }
}
@media only screen and (max-device-width: 1024px) and (orientation:landscape) { 
    .portrait { display: none; }
}

<!-- example markup -->
<h1 class="portrait">Your device orientation is "portrait"<h1>
<h1 class="landscape">Your device orientation is "landscape"<h1>

As you can see, I’ve also changed the markup in a predictable way. An explanation of the changes and the reasoning behind them can be found below.

반응형

+ Recent posts