Skip to content

material-design-style drawer 옵션화 요청 #40

@gitaeks

Description

@gitaeks

@kieregh , 요청하신 material-design-style drawer 입니다.
문서를 보시면 별도의 css와 js 를 추가해야 구현이 가능한 상태인데요.

drawer 익스텐션의 옵션으로 아래의 방식이 구현가능하면 좋지 않을까도 생각됩니다. ( 추가되는 css 는rc-snap.css 에 내장시킨후 drawer에 별도의 class를 부여하면 적용하면 될 것 같습니다.

문서
http://rc.kimsq.com/extensions/snap/#material-design-style

데모
http://rc.kimsq.com/examples/extensions/snap/material-design-style.html

image

css 추가

.snap-drawer-left {
  position: fixed;
  top: 0;
  left: -1px;
  right: 0;
  bottom: 0;
  -webkit-transform: translate3d(-265px, 0, 0);
          transform: translate3d(-265px, 0, 0);
  -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.9);
          box-shadow: 0px 0px 10px rgba(0,0,0,0.9);
}
.snapjs-left .snap-drawer-left {
  z-index: 11;
}

js 추가

snapper = new Snap({
  element: $("#myDrawer")[0],
  maxPosition: 1,
  minPosition: -1,
  transitionSpeed: 0.1,
})

// Initialize drawer
RC_initDrawer();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions