A lightweight react library to create fullpage websites

栏目: IT技术 · 发布时间: 5年前

内容简介:Here's a previewYou can check out a live demo

fullpage-react-fs

A lightweight react library to create fullpage websites

Here's a preview

A lightweight react library to create fullpage websites

You can check out a live demo here

View it being used in my personal blog at faisalrashid.online

Install

npm install --save fullpage-react-fs
or
yarn add fullpage-react-fs

Usage

import React from 'react'

import { FullPageContainer, FullPagePanel } from 'fullpage-react-fs'
import 'fullpage-react-fs/dist/index.css'

export const App = () => {
  return (
    <FullPageContainer showIndicators={true}>

      {/* Panel 1 */}
      <FullPagePanel bgColor='azure'>
        Your Content
      </FullPagePanel>

      {/* Panel 2 */}
      <FullPagePanel bgColor='lightgoldenrodyellow'>
        <div>Goes</div>
      </FullPagePanel>

      {/* Panel 3 */}
      <FullPagePanel>
        <h1>here</h1>
      </FullPagePanel>

    </FullPageContainer>
  )
}

As shown in the sample code above do not forget to import the CSS file.

License

MIT © FaisalST32


以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

万万没想到

万万没想到

万维钢(同人于野) / 电子工业出版社 / 2014-10-1 / 39.80元

本书精选了万维钢老师的文章和书评,以“用理工科思维理解世界”为导向。作者常用有趣的实验、数据来解读感性的事物,其理工科思维涉及行为经济学、认知心理学、社会学、统计学、物理等许多学科,以前沿的科学视角解读生活,为人们提供了认知的新方法。读完本书相当于精读了十几本经过筛选 、再创作及通俗化处理的巨著,不仅有趣还十分有营养。一起来看看 《万万没想到》 这本书的介绍吧!

Base64 编码/解码
Base64 编码/解码

Base64 编码/解码

URL 编码/解码
URL 编码/解码

URL 编码/解码

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具