Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ 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.


Auto Save

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="menu-list" class="l-wrap bg-black">
    <div class="l-inner">
        <ul class="l-content menu-column">
            <li class="column-item"><a href="#" class="btn-item"><span>AAAの詳細はこちら</span></a></li>
            <li class="column-item"><a href="#" class="btn-item"><span>BBBの詳細はこちら</span></a></li>
            <li class="column-item"><a href="#" class="btn-item"><span>CCCの詳細はこちら</span></a></li>
            <li class="column-item"><a href="#" class="btn-item"><span>DDDの詳細はこちら</span></a></li>


                body {
  font-family: system-ui;

.l-wrap {
  padding: 48px 0;

.l-inner {
  padding: 0 48px;

.l-content {
  max-width; 1200px;

menu-list 補足付き / 左にアイコン

.bg-black {
  background-color: #2a2a2a;
.menu-column {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 304px), 1fr));
  gap: 16px;

        a.btn-item {
            position: relative;
            display: block;
            overflow: hidden;
            margin: 0 auto;
            padding: 24px 16px;
            color: white;
            border: 1px solid;
            border-radius: 8px;
            text-decoration: none;
            text-align: center;
            font-weight: bold;
            -webkit-transition: 0.3s ease-in-out;
            transition: 0.3s ease-in-out;
            z-index: 1;
        a.btn-item span {
            -webkit-transition: 0.3s ease-in-out;
            transition: 0.3s ease-in-out;
        /* ボタン右端の矢印アイコン */
        a.btn-item span::after {
            position: absolute;
            content: "";
            top: 50%;
            right: 16px;
            -webkit-transform: translate(0, -50%);
            transform: translate(0, -50%);
            width: 20px;
            height: 20px;
            /*  任意の矢印画像パスに変更ください  */
            background-image: url("");
            background-repeat: no-repeat;
            background-size: contain;
            -webkit-transition: 0.3s ease-in-out;
            transition: 0.3s ease-in-out;
        a.btn-item:hover span::after {
            /*  任意の矢印画像パスに変更ください  */
            background-image: url("");
            -webkit-transform: translate(4px, -50%);
            transform: translate(4px, -50%);
        /* 背景アニメーション */
        a.btn-item::before {
            position: absolute;
            content: "";
            top: -50%;
            right: 0;
            width: 120%;
            height: 200%;
            background-color: white;
            border-radius: 0 100% 100% 0;
            -webkit-transform: translateX(-100%);
            transform: translateX(-100%);
            -webkit-transition: 0.3s ease-in-out;
            transition: 0.3s ease-in-out;
            z-index: -1;
        a.btn-item:hover {
            opacity: 1;
        a.btn-item:hover span {
            color: #2a2a2a;
        a.btn-item:hover::before {
            /*   カーテンアニメーション */
            -webkit-transform: translateX(10%);
            transform: translateX(10%);