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.


使用 animate.css 結合 AOS 做出動畫效果 
<div class="container-fluid px-0">
  <div class="header bg-cover d-flex justify-content-center align-items-center" style="background-image: url(;">
    <div class="row justify-content-center">
      <div class="col-10 bg-white" data-aos="animate__backInLeft">
  <blockquote class="blockquote py-3 px-4">
    <p>"Christmas is the day that holds all time together."</p>
  <figcaption class="blockquote-footer">
    Alexander Smith </figcaption>


                [data-aos] {
  visibility: hidden;
[data-aos].animate__animated {
  visibility: visible;
:root {
  --animate-duration: 1800ms;
  --animation-delay: 2.9s;
.box {
  height: 500px;
  background: red;

  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  height: 500px;

.item {
  width: 200px;
  height: 500px;
  margin: 50px auto;
  padding-top: 75px;
  background: #ccc;
  text-align: center;
  color: #FFF;
  font-size: 3em;
  text-align: center;


                // AOS 初始化
  useClassNames: true, //使否要用自己想套用的樣式
  initClassName: false,
  animatedClassName: 'animate__animated',  //想套用樣式的 class 名稱