[Filmed.jsライブラリ] 画像をフィルム調にする

説明

Filmed.jsライブラリで画像の反射効果を設定するには、imgタグのスタイルシートクラス名にfilmedを指定します。単純にフィルム調にしたいのであれば特にスクリプトなどを書く必要はありません。

サンプルプログラム

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="ja">
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>Sample</title>
<link rel="stylesheet" href="css/main.css" type="text/css" media="all">
<script type="text/javascript" src="js/filmed.js"></script>
</head>
<body>
<h1>画像をフィルム調にする</h1>
<div>
<img src="images/sample.jpg" width="480" height="270" class="filmed">
</div>
</body>
</html>
サンプルを実行
[戻る]