willismax
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
      • Invitee
    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Versions and GitHub Sync Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
Invitee
Publish Note

Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

Your note will be visible on your profile and discoverable by anyone.
Your note is now live.
This note is visible on your profile and discoverable online.
Everyone on the web can find and read all notes of this public team.
See published notes
Unpublish note
Please check the box to agree to the Community Guidelines.
View profile
Engagement control
Commenting
Permission
Disabled Forbidden Owners Signed-in users Everyone
Enable
Permission
  • Forbidden
  • Owners
  • Signed-in users
  • Everyone
Suggest edit
Permission
Disabled Forbidden Owners Signed-in users Everyone
Enable
Permission
  • Forbidden
  • Owners
  • Signed-in users
Emoji Reply
Enable
Import from Dropbox Google Drive Gist Clipboard
   owned this note    owned this note      
Published Linked with GitHub
Subscribed
  • Any changes
    Be notified of any changes
  • Mention me
    Be notified of mention me
  • Unsubscribe
Subscribe
--- author: Willis Chen image: https://hackmd.io/_uploads/B1-u_uJZs.png GA: G-CH7FZ71WRC --- # Day 17 : 炫炮的 HackMD 簡報客製背景設定 [![hackmd-github-sync-badge](https://hackmd.io/hu8kWLv5SeGSTfVRqx29UA/badge)](https://hackmd.io/hu8kWLv5SeGSTfVRqx29UA) [![Yes](https://img.youtube.com/vi/GYZH8LB_ees/0.jpg)](https://www.youtube.com/watch?v=GYZH8LB_ees) - HackMD簡潔的簡報功能已經非常實用,今天要分享的是客製化背景,背景可以是另一種顏色、漸層、圖檔、動畫、影片,甚至是iframe,真的很扯,迫不及待分享給您。 - 今日簡報[Day 17 : HackMD 簡報客製背景設定-簡報](https://hackmd.io/@wiimax/intro-hackmd-17),請搭配使用觀看動態效果。 ## 設定單頁簡報背景 - 設定簡報的各種特效為`<!-- .slide: -->`,參數可以接背景圖片的`data-background`,該參數可以給圖片網址、gif檔網址,就是一整個星爆。 ``` <!-- .slide: data-background="https://hackmd.io/_uploads/rkZ8MIjbi.png" --> ### 美美的背景 ``` ![](https://hackmd.io/_uploads/r1vYxkyzj.png) - 如果用的是`.gif`背景,像是用了 ![](https://hackmd.io/_uploads/rkVUwSoZi.gif) ![](https://hackmd.io/_uploads/SJq0ekkzj.png) ``` # 大腦在星爆.gif ![](https://hackmd.io/_uploads/rkVUwSoZi.gif) <!-- .slide: data-background="https://hackmd.io/_uploads/rkVUwSoZi.gif" --> ``` ## 設定影片當背景 - 在`<!-- .slide: -->`之中以`data-background-video`參數,提供`.mp4`的連結,就可以當作滿版的影片撥放,並且可以重複撥放的`data-background-video-loop`參數,以及靜音的`data-background-video-muted`參數,讓簡報更生動吸睛。 - 在範例影片中的前景仍可以寫文案,HackMD的`:::warning :::`語法也有支援,形成了一個文字底圖~ - 因為`.mp4`網址不好找,直接引用Revealjs的簡報背景影片如下(後續會使用Google雲端硬碟的解法,再請拭目以待)。 ![](https://hackmd.io/_uploads/HyBwGyyzj.png) ``` <!--.slide:data-background-video="https://static.slid.es/site/homepage/v1/homepage-video-editor.mp4" data-background-video-loop data-background-video-muted --> :::warning ## <font color="#003366">背景嵌入影片</font> ::: ``` ## 設定iframe當背景 - 同理在`<!-- .slide: -->`之中,改以`ata-background-iframe`參數的話,該連結就是一個滿版的iframe嵌入,加上`data-background-interactive`參數就可以與iframe互動。 - 以下為影片中示範滿版iframe的畫面,但濫用iframe除了不利於SEO搜尋,也容易讓使用者混淆,請警慎採用。 ![](https://hackmd.io/_uploads/HyEhmykfj.png) ``` <!--.slide:data-background-iframe="https://hackmd.io/@wiimax/Bk0dCIiWs/edit" data-background-interactive preloadIframes --> :::danger ## <font color="#003366">沒事不要用滿版的背景iframe</font> ## <font color="#003366">太容易混淆有資安風險</font> ::: ``` ## 最後不妨去看看Reveal.js的功能吧 - [revealjs簡報 DEMO](https://revealjs.com/demo/?parallaxBackgroundImage=https%3A%2F%2Fs3.amazonaws.com%2Fhakim-static%2Freveal-js%2Freveal-parallax-1.jpg&parallaxBackgroundSize=2100px%20900px),程式碼在此。 - 也提醒您Reaveal.js的語法都是以`<session></session>`包起來,在HackMD的簡報中您改用`<!-- .slide: -->`包起來即可。 大腦在星爆~~ > 提供[今日簡報](https://hackmd.io/@wiimax/intro-hackmd-17),以及至今已公開的[所有簡報](https://hackmd.io/@wiimax/intro-hackmd-slides),供您一次瀏覽!

Import from clipboard

Paste your markdown or webpage here...

Advanced permission required

Your current role can only read. Ask the system administrator to acquire write and comment permission.

This team is disabled

Sorry, this team is disabled. You can't edit this note.

This note is locked

Sorry, only owner can edit this note.

Reach the limit

Sorry, you've reached the max length this note can be.
Please reduce the content or divide it to more notes, thank you!

Import from Gist

Import from Snippet

or

Export to Snippet

Are you sure?

Do you really want to delete this note?
All users will lose their connection.

Create a note from template

Create a note from template

Oops...
This template has been removed or transferred.
Upgrade
All
  • All
  • Team
No template.

Create a template

Upgrade

Delete template

Do you really want to delete this template?
Turn this template into a regular note and keep its content, versions, and comments.

This page need refresh

You have an incompatible client version.
Refresh to update.
New version available!
See releases notes here
Refresh to enjoy new features.
Your user state has changed.
Refresh to load new user state.

Sign in

Forgot password

or

By clicking below, you agree to our terms of service.

Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
Wallet ( )
Connect another wallet

New to HackMD? Sign up

Help

  • English
  • 中文
  • Français
  • Deutsch
  • 日本語
  • Español
  • Català
  • Ελληνικά
  • Português
  • italiano
  • Türkçe
  • Русский
  • Nederlands
  • hrvatski jezik
  • język polski
  • Українська
  • हिन्दी
  • svenska
  • Esperanto
  • dansk

Documents

Help & Tutorial

How to use Book mode

Slide Example

API Docs

Edit in VSCode

Install browser extension

Contacts

Feedback

Discord

Send us email

Resources

Releases

Pricing

Blog

Policy

Terms

Privacy

Cheatsheet

Syntax Example Reference
# Header Header 基本排版
- Unordered List
  • Unordered List
1. Ordered List
  1. Ordered List
- [ ] Todo List
  • Todo List
> Blockquote
Blockquote
**Bold font** Bold font
*Italics font* Italics font
~~Strikethrough~~ Strikethrough
19^th^ 19th
H~2~O H2O
++Inserted text++ Inserted text
==Marked text== Marked text
[link text](https:// "title") Link
![image alt](https:// "title") Image
`Code` Code 在筆記中貼入程式碼
```javascript
var i = 0;
```
var i = 0;
:smile: :smile: Emoji list
{%youtube youtube_id %} Externals
$L^aT_eX$ LaTeX
:::info
This is a alert area.
:::

This is a alert area.

Versions and GitHub Sync
Get Full History Access

  • Edit version name
  • Delete

revision author avatar     named on  

More Less

Note content is identical to the latest version.
Compare
    Choose a version
    No search result
    Version not found
Sign in to link this note to GitHub
Learn more
This note is not linked with GitHub
 

Feedback

Submission failed, please try again

Thanks for your support.

On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

Please give us some advice and help us improve HackMD.

 

Thanks for your feedback

Remove version name

Do you want to remove this version name and description?

Transfer ownership

Transfer to
    Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

      Link with GitHub

      Please authorize HackMD on GitHub
      • Please sign in to GitHub and install the HackMD app on your GitHub repo.
      • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
      Learn more  Sign in to GitHub

      Push the note to GitHub Push to GitHub Pull a file from GitHub

        Authorize again
       

      Choose which file to push to

      Select repo
      Refresh Authorize more repos
      Select branch
      Select file
      Select branch
      Choose version(s) to push
      • Save a new version and push
      • Choose from existing versions
      Include title and tags
      Available push count

      Pull from GitHub

       
      File from GitHub
      File from HackMD

      GitHub Link Settings

      File linked

      Linked by
      File path
      Last synced branch
      Available push count

      Danger Zone

      Unlink
      You will no longer receive notification when GitHub file changes after unlink.

      Syncing

      Push failed

      Push successfully