Skip to content

How to add entry splash screen with animated logo #139

Discussion options

You must be logged in to vote

You can add this fullscreen.html file to your _includes folder:
https://github.com/greenelab/greenelab.com/blob/main/_includes/fullscreen.html

and include it in your <header> like {% include fullscreen.html %} (see https://github.com/greenelab/greenelab.com/blob/bde6a4652c1562df7c718f647ae3680d91374f67/_includes/header.html).

Then you can add this CSS to your css/header.scss file:

header {
  // ...

  &[data-fullscreen] {
    transition: min-height $slow;
  }

  &[data-fullscreen="true"] {
    justify-content: center;
    min-height: 100vh;

    .logo {
      height: 200px;
      animation: fade_in 2s ease forwards;

      @keyframes fade_in {
        0% {
          opacity: 0;
          t…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Harrisonthow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants