サイト内検索:

CSSデザインの最近のブログ記事

吹き出しのような絵をCSSで描こうとするときに、ポイントとなるのはぽちっと飛び出した3角形の部分なんですが、手動でもそのためのCSSは書けなくはないけど、頭の中でいろいろ考えながら書かなきゃいけないので汗をかきます。

そんなわけで、ちょこちょこっと数値などを指定してあげるだけで吹き出しみたいなの(これをCSS Arrowと呼んでいるようです)が作れるサイト「cssarrowplease」です。

cssarrowplease

うむ、楽だ。

そんなわけでとりあえずブックマークしておきました。

あ、でもここで作ったCSS ArrowってIEのちょっと古いやつで見たらどうなるんだろうね。

cssarrowplease

stroll.js is a collection of CSS list scroll effects

stroll.js - CSS3 List Scroll Effects - The Changelog - Open Source moves fast. Keep up.

こんな感じのリストが

stroll.js - CSS3 List Scroll Effects - The Changelog - Open Source moves fast. Keep up.

スクロールするときにこんな感じでスクロールしていきます。

stroll.js - CSS3 List Scroll Effects - The Changelog - Open Source moves fast. Keep up.

パターンは全部で13種類。

ゆっくりスクロールしてもいいのですが、高速でスクロールさせると面白いのもあります(逆に面白くなくなる場合もあります)。

以下のサイトにアクセスして各リストの上でマウスでスクロールさせればその効果が見れます。

多分モダンブラウザ系じゃないとうまく機能しないと思うのでIE使っている人はIE以外のブラウザで見た方がいいんじゃないかと思う次第です。

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

The plugin takes a dom element, slices it into parts and arranges them like a folded paper in 3d space.

Paperfold CSS | Demo Studio | Mozilla Developer Network

developer.mozilla.orgで紹介されていたのでFirefoxでしか動かないのかな、と思ったらSafariでも動いたのでご紹介。

こんな感じのデザインを実現することができます。

Paperfold CSS | Demo Studio | Mozilla Developer Network

単なるデザインじゃなくてこの折りたたみ具合などをJavaScriptで変更することもできます。

そんなのを体験できるデモページはこちら。利用しているブラウザでうまく動かない時は素直にFirefoxで試してみてください。

リンク先の「Paperfold CSS」のページには開発者さんのコメントなどが掲載されているのですが、実装にあたってはいろいろたいへんだったみたいです。

Inspired by the Glyphicon set that comes with Twitter Bootstrap 2.0, Font Awesome is designed from scratch for a full array of web-related actions.

Font Awesome, the iconic font designed for use with Twitter Bootstrap

Twitter Bootstrapにはよく使われるアイコンをフォント化してWeb Fontとして利用できるようにしている部品があるのですが、それにインスパイアされて作られたのが「Font Awesome」です。

Font Awesome, the iconic font designed for use with Twitter Bootstrap

Twitter BootstrapのWeb Fontはここで見ることができるのですが、ぱっと見た感じは「Font Awesome」と同じようなものの、じっくり見ると線の太さとか角度などが違ってて「ああ、インスパイアってのはこういうもんだよな」という正しい世界が繰り広げられています。

アイコン画像がフォントになるとアイコンサイズを自由に大きくしたり小さくしたりできますし、色も変えられるしボタンの中に入れ込むこともできるようになります。

ということで、こういうアイコンを活用して素敵なWebページを作ってみてはいかがでしょうか?

Sequence is the jQuery slider plugin with infinite style. It provides the complete functionality for a website slider without forcing you to use a set theme. In fact, Sequence has no in-built theme, leaving you complete creative control to build a unique slider using only CSS3 -- no jQuery knowledge required!

Sequence.js - The jQuery Slider Plugin with Infinite Style

最近のWebページでは大きな写真(画像)が左右にスライドして切り替わるといった効果がよく使われているのですが、そんな効果を実現するjQuery用プラグインです。

いちおうまだベータということなので最終版が出るのを待つのもよいのですが、とりあえず以下のデモを見て期待わくわくしてみてください。

Modern Slide

次のスライドに映る前に一度ぼわっと消える、ってのが単にスライドさせるだけじゃなくていい感じです。

Sliding Horizontal Parallax

テキストとオブジェクトが別のアニメーションをしながら切り替わっていきます。これが簡単に実装できるならかなりコストパフォーマンスが高いですね。

Apple Style

Appleのサイトで見たことがあるいろいろな動き方をするやつです。これについてはモダシンで前に書いたこの記事も参考にしてみてください。

アップルの「iPhone 4S」のWebページで使われているCSSアニメーションが面白い

で、このSequence.jsですが、以下のようなセールスポイントのようです。

・Unique transition styles created using CSS3
・Supports all modern browsers
・Gracefully degrades in older browsers
・Supports touch devices and swiping
・Supports responsive layouts
・20+ options (and more to come!)

IE7でも利用できると申しております。それってすごいな。

Web制作の現場で使う jQueryデザイン入門 (WEB PROFESSIONAL) Web制作の現場で使う jQueryデザイン入門 (WEB PROFESSIONAL)

It's easy to understand why thousands of developers use SimpLESS. It compiles your *.less files into valid CSS.

LESS、って普通の人は知らないでしょうね。まあ、それはそれでいいのですが、LESSは素晴らしいのですが、ツールを使わないといちいちCSSにコンパイルしなきゃいけない、というのが面倒です。

codekitというアプリが現在β版として公開されていて、それがLESS、SAAS、Stylusのコンパイル以外にCoffeeScriptの変換までやるので非常にいい感じなのですが、正式版は$10ぐらいになる、ってのと、LESSだけでいいや、って人にはToo Muchであるというところがちょっとあれだなあ、と思っている人も少なくことでしょう。

codekit

そんな「LESSだけでいいや」って人にぴったりなのが、この「SimpLESS」です。

なんといっても無料ですし、Mac、Windows、Linuxで利用できます。

単にLESS→CSSだけじゃなくCSSファイルの圧縮(余計なコードを取り除くやつ)とかLESSファイルを保存する度に自動でCSSに変換してくれたりとcodekitのLESSの部分とほぼ同じことが行えます。

そんなわけでLESSを活用して作業時間を短縮して余った時間で人生を楽しみましょう!

SimpLESS - Your LESS CSS Compiler

This is an extension to the Twitter Bootstrap framework. It makes creating pretty buttons easy.

Beautiful Buttons for Twitter Bootstrappers

TwitterのBootstrapでは予めボタン用のクラスがいろいろ用意されているのですが、それ以外にオリジナルなボタンを作ろうと思うと、それらのテイストとちょっと違う感じになってしまい結構苦労することになります。

そんなときに活用できるのが「Beautiful Buttons for Twitter Bootstrappers」というタイトルのサイトです。特にサイト名はないみたいですね。

ボタンのデザインは上図のようにスライダをいじくるだけでできるみたいです。で、あとは生成されたCSSをページに追加してあげればOK、って感じです。

上のスクリーンショットのページの下に方には既に作成済みのサンプルのようなものがありますので、それをそのまま利用する、ってのもありかと思います。

TwitterのBootstrapバージョン2がリリース!

Bootstrapバージョン1で遊んでいるうちにバージョン2がリリースされてしまいました。

Bootstrap, from Twitter

1.4からの変更点は以下の通りです。

Scaffolding

Grid system

  • Updated grid system, now only 12 columns instead of 16
  • Responsive approach means your projects virtually work out of the box on smartphones, tablets, and more
  • Removed unused (by default) grid columns support for 17-24 columns

Responsive (media queries)

  • Media queries added for basic support across mobile and tablet devices
  • Responsive CSS is compiled separately, as bootstrap-responsive.css


Base CSS

Typography

  • h4 elements were dropped from 16px to 14px with a default line-height of 18px
  • h5 elements were dropped from 14px to 12px
  • h6 elements were dropped from 13px to 11px
  • Right-aligned option for blockquotes if float: right;

Code

  • New graphical style for
  • Google Code Prettify styles updated (based on GitHub's gists)

Tables

  • Improved support for colspan and rowspan
  • Styles now restricted to new base class, .table
  • Table classes standardized with .table- required as a prefix
  • Removed unused table color options (too much code for such little impact)
  • Dropped support for TableSorter

Buttons

  • New classes for colors and sizes, all prefixed with .btn-
  • IE9: removed gradients and added rounded corners
  • Updated active state to make styling clearer in button groups (new) and look better with custom transition
  • New mixin, .buttonBackground, to set button gradients

Forms

  • Default form style is now vertical (stacked) to use less CSS and add greater flexibility
  • Form classes standardized with .form- required as a prefix
  • New built-in form defaults for search, inline, and horizontal forms
  • More flexible horizontal form markup with classes for all styling, including new optional class for the label
  • Form states: colors updated and customizable via new LESS variables

Icons, by Glyphicons

  • New Glyphicons Halflings icon set added in sprite form, in black and white
  • Simple markup required for an icon in tons of contexts: <i class="icon-cog"></>
  • Add another class, .icon-white, for white variation of the same icon


Components

Button groups and dropdowns

  • Two brand new components in 2.0: button groups and button dropdowns
  • Dependency: button dropdowns are built on button groups, and therefore require all their styles
  • Button groups, .btn-group, can be grouped one level higher with a button toolbar, .btn-toolbar

Navigation

  • Tabs and pills now require the use of a new base class, .nav, on their <ul>
  • New nav list variation added that uses the same base class, .nav
  • Vertical tabs and pills have been added--just add .nav-stacked to the
    • Pills were restyled to be less rounded by default
    • Pills now have dropdown menu support (they share the same markup and styles as tabs)
    Navbar (formerly topbar)
    • Base class changed from .topbar to .navbar
    • Now supports static position (default behavior, not fixed) and fixed to the top of viewport via .navbar-fixed-top (previously only supported fixed)
    • Added vertical dividers to top-level nav
    • Improved support for inline forms in the navbar, which now require .navbar-form to properly scope styles to only the intended forms.
    • Navbar search form now requires use of the .navbar-search class and its input the use of .search-query. To position the search form, you must use .pull-left or .pull-right.
    • Added optional responsive markup for collapsing navbar contents for smaller resolutions and devices. See navbar docs for how to utilize.

    Dropdown menus

    • Updated the .dropdown-menu to tighten up spacing
    • Now requires you to add a to show the dropdown arrow
    • The navbar (fixed topbar) has brand new dropdowns. Gone are the dark versions and in their place are the standard white ones with an additional caret at their tops for clarity of position.

    Labels

    • Label colors updated to match form state colors
    • Not only do they match graphically, but they are powered by the same new variables

    Thumbnails

    • Formerly .media-grid, now just .thumbnails, we've thoroughly extended this component for more uses while maintaining overall simplicity out of the box.
    • Individual thumbnails now require .thumbnail class

    Alerts

    • New base class: .alert instead of .alert-message
    • Class names standardized for other options, now all starting with .alert-
    • Redesigned base alert styles to combine the deafult alerts and block-level alerts into one
    • Block level alert class changed: .alert-block instead of .block-message

    Progress bars

    • New in 2.0
    • Features multiple styles via classes, including striped and animated variations via CSS3

    Miscellaneous components

    Added documentation for the well component and the close icon (used in modals and alerts)


    Javascript plugins

    Heads up! We're rewritten just about everything for our plugins, so head on over to the Javascript page to learn more.

    Popovers

    • Child elements now properly namespaced: .title to .popover-title, .inner to .popover-inner, and .content to .popover-content.

    New plugins

    • Collapse
    • Carousel
    • Typeahead


    この新しいJSプラグイン、面白いですね。

    ああ、また勉強しなくっちゃ・・・。

このサイト、便利か便利じゃないかってのは多分使う人によって意見が分かれるところかと思うのですが、とりあえずそういう判断は読んだ人/利用した人に任せる、ってことでとりあえずご紹介。個人的には使わないかなあ。

あ、会員登録とかそういう面倒なことなくすぐに利用できます。

Bear CSS is a handy little tool for web designers. It generates a CSS template containing all the HTML elements, classes & IDs defined in your markup.

Bear CSS - Helping you build a solid stylesheet foundation based on your markup

HTMLファイルをアップロードするとそこで使用されているHTML要素やクラス、IDを抽出してCSSファイルのひな形を作成してくれます。

CSSのひな形ファイルはアップロード&解析が済むとすぐにブラウザ内に表示されるので、後はそれをコピーして各要素にデザイン要素を適用していく、という流れになります。

クラス等の定義のし忘れがなくなる、ってのがメリットなのかなあ。でも定義し忘れててもブラウザで表示されたページを見れば作った人には一目瞭然どこが定義忘れかわかるしなあ。

そんなわけで、もしかしたら気に入る人がいるかもしれない、というでご紹介しました。

PHP Simple HTML DOM ParserとかUploadifyというのを使って作られているそうです。

3D transforms are awesome, but they're even cooler with lighting effects!

Interactive CSS3 Lighting Effects

CSS3の3D transformsは凄いけど、そこにライティング(光)効果が絡むともっとクールになるよね、ってことで、実際に実装してみたらほんとにクール!

サイトにアクセスすると以下のようにAppleっぽい反射が施されたiPadがあるのですが、

このiPadをマウスでいじくってみるとあら不思議。光の反射効果がリアルタイムに画像に反映されるではありませんか!
しかもiPadの影までちゃんと変化しちゃうし!

The specular highlights are created with CSS gradients and masks. The cast shadow relies on box shadows and transforms. (Best in Safari)

その反射はCSSグラデーションとマスクで実現されているようです。Best in SafariということでSafariで見たんですが、Chromeでも大丈夫でした。

汎用ライブラリ化されていないので使い方は面倒かと思いますが、これ見た誰かがきっとなんかやってくれそうな気がします。

【過去記事】

COTOBACO

2011年アルファブロガー受賞

新着DVD

モバイル

Powered by Movable Type 5.04

ブログ内検索

BlogPeople ReviewMe!

このサイトのレビューとか応援コメントを書いてもらえると励みになります。

Affi☆List for Amazon

バナー広告

このアーカイブについて

このページには、過去に書かれたブログ記事のうちCSSデザインカテゴリに属しているものが含まれています。

前のカテゴリはBlogPeopleです。

次のカテゴリは電子書籍です。

最近のコンテンツはインデックスページで見られます。過去に書かれたものはアーカイブのページで見られます。