Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource


Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


                <section id="profile">
    <h1 class="name">イイダリョウ</h1>
    <p class="detail">Webデザイナー。神奈川県在住。 丹沢山地と相模湾の自然に囲まれて暮らしています。</p>
    <p class="link">さらに詳しい情報は<a href="#" target="">コチラ</a></p>
    <img src="" alt="顔写真">



body {
    font-family:"ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", "游ゴシック", YuGothic, "メイリオ", Meiryo, Helvetica, Arial, sans-serif;
     color: #777;
     font-size: 14px;

#profile {
    width: 300px;
    margin: 0 auto;
    padding: 0px 10px 10px;
    background: #eee;
    border: 1px solid #ccc;
    border-radius: 5px;

#profile h1 {
    padding: 10px;
    font-size: 20px;
    color: #fff;
    background: #888;
    border-bottom: 3px solid  #C30D23;
    text-align: center;

#profile .link {
    font-size: 12px;
    transition: all 0.3s;

#profile .link:before {
    content: "※";

#profile .link a:hover {
    opacity: 0.7;

#profile img {
      width: 100%;
      height: auto;
      margin:  10px 0 0 0;


                // イベントリスナ(DOM読み込み)
window.addEventListener('load', function() {

    // 変数定義(DOM取得)
    var target = document.querySelector("#profile img");

    // 関数定義
    function hakken () {

        // 配列
        var serif = ["隠しボタンを見つけてくれてありがとう。私の名前は“Atama”です。",
        var len = serif.length; //(配列数)

        // 制御構造(反復)
        for (var i =0; i < len; i++) {

    // イベントリスナ(クリック)
    target.addEventListener("click", hakken, false);