
Research
/Security News
11 Malicious Go Packages Distribute Obfuscated Remote Payloads
Socket uncovered 11 malicious Go packages using obfuscated loaders to fetch and execute second-stage payloads via C2 domains.
carousel-3d
Advanced tools
A simple 3D carousel widget.
It supports all major browsers including IE8,9 with best effort. Full 3D effect requires css transform3d
support browsers.
And this widget works with not only images but any html elements as child.
Thanks to Sauce Labs, I confirmed carousel working on above versions. I think I can say it works almost everywhere.
http://paio-co-kr.github.io/carousel-3d
bower install carousel-3d
carousel-3d requires some modules. jquery
, javascript-detect-element-resize
, modernizr
, waitForImages
.
You will need to include those scripts before carousel-3d.js in html page or load it with requirejs or browserify as carousel-3d comes with UMD style module definition.
data-carousel-3d
attribute on div
will be rendered as carousel.<div data-carousel-3d></div>
tag. All items on that list will be arranged on 3D position.selected
attribute on item which will be default selected item.in header, add css theme and required js.
<link rel="stylesheet" href="../dist/styles/jquery.carousel-3d.default.css" />
<script src="../bower_components/jquery/jquery.js"></script>
<script src="../bower_components/javascript-detect-element-resize/jquery.resize.js"></script>
<script src="../bower_components/waitForImages/dist/jquery.waitforimages.js"></script>
<script src="../bower_components/modernizr/modernizr.js"></script>
<script src="../dist/jquery.carousel-3d.js" ></script>
in body
<div id="wrapper">
<div id="myCarousel" data-carousel-3d>
<img src="./images/1.jpg" />
<img src="./images/2.jpg" selected />
<img src="./images/3.jpg" />
<img src="./images/4.jpg" />
<img src="./images/5.jpg" />
</div>
</div>
<div style="min-width: 640px; min-height: 420px; max-width: 640px; max-height: 420px;">
<p style="background-color:black; color:white; margin:20px; padding:20px;">A simple html child</p>
<div style="background-color:gray; color:white;">Html contents also works ok!!!</div>
<div>The quick brown fox jumps over the lazy dog</div>
<p>
Make the fox
<button type="button" onclick="alert('Jump!!');">jump</button>
</p>
</div>
The Carousel will have parents 100% width & aspect height. so you will want wrap the div with appropriate size. And wide aspect(3:2, 2:1 ...) is recommanded for 3D rotating effect.
You can have multiple carousels with no effort. Just set proper attribues.
$('#myCarousel').Carousel3d('prev');
$('#myCarousel').Carousel3d('next');
$('#myCarousel').Carousel3d('rotate', 3);
$('#myCarousel').on('select', function (evt, index) {
console.log('item selected : ' + index);
});
MIT © PAIO
정말 간단한 3d 케러셀 위젯입니다.
css transform3d
와 같이 Full 3d 효과를 요구하는 브라우저들을 지원하는 것은 물론 IE8,9 에서도 최적의 성능을 보이도록 지원합니다. 또한 그림들 뿐만 아니라 어떠한 HTML elements 의 자식요소에서도 잘 작동합니다.
먼저 도움을 주신 Sauce Labs에 감사의 말씀을 전해드리며, 앞서 언급된 인터넷브라우저들의 버전에서 케러셀-3D가 잘 작동하는 것이 확인 되었습니다. 제 생각에는 거의 모든 곳에서 잘 작동한다고 할 수 있습니다.
http://paio-co-kr.github.io/carousel-3d
bower install carousel-3d
케러셀-3d는 jquery
, javascript-detect-element-resize
, modernizr
, waitForImages
등 과 같은 모듈들의 도움이 필요합니다. 여러분들이 케러셀-3d.js를 HTML페이지 안에서 구현 하거나 또는 필요한 자바스크립트와 함께 실어 구현하거나, 또는 UMD 스타일 모듈 정의에 따른 케러셀-3d를 구현하고 싶다면 앞서 언급한 스크립트들이 필요 할 것입니다.
div
의 data-carousel-3d
속성에 추가하세요. 케러셀로 되돌려질 것입니다.<div data-carousel-3d></div>
태그안에 아이템들을 만드세요. 그 리스트의 아이템들이 모두 3D 위치로 잡혀질 것입니다.selected
속성을 이용하여 기본선택으로 된 아이템으로도 적용 할 수 있습니다.css 테마 또는 필요한 자바스크립트의 헤더 안에 추가 하세요.
<link rel="stylesheet" href="../dist/styles/jquery.carousel-3d.default.css" />
<script src="../bower_components/jquery/jquery.js"></script>
<script src="../bower_components/javascript-detect-element-resize/jquery.resize.js"></script>
<script src="../bower_components/waitForImages/dist/jquery.waitforimages.js"></script>
<script src="../bower_components/modernizr/modernizr.js"></script>
<script src="../dist/jquery.carousel-3d.js" ></script>
body 태그 안에
<div id="wrapper">
<div id="myCarousel" data-carousel-3d>
<img src="./images/1.jpg" />
<img src="./images/2.jpg" selected />
<img src="./images/3.jpg" />
<img src="./images/4.jpg" />
<img src="./images/5.jpg" />
</div>
</div>
<div style="min-width: 640px; min-height: 420px; max-width: 640px; max-height: 420px;">
<p style="background-color:black; color:white; margin:20px; padding:20px;">A simple html child</p>
<div style="background-color:gray; color:white;">Html contents also works ok!!!</div>
<div>The quick brown fox jumps over the lazy dog</div>
<p>
Make the fox
<button type="button" onclick="alert('Jump!!');">jump</button>
</p>
</div>
케러셀은 100% width & aspect height 를 부모요소로 가집니다. 그래서 div를 적당한 크기로 감쌀 필요가 있습니다. 그리고 3d 선회 효과는 wide aspect(3:2, 2:1 ...)정도를 추천드립니다.
Multiple Carousels을 구현하고 싶다면 간단하게 proper attribues를 설정해 주는 것만으로 여러분이 원하는 대로 쉽게 구현 할 수 있습니다.
$('#myCarousel').Carousel3d('prev');
$('#myCarousel').Carousel3d('next');
$('#myCarousel').Carousel3d('rotate', 3);
$('#myCarousel').on('select', function (evt, index) {
console.log('item selected : ' + index);
});
MIT © PAIO
FAQs
carousel-3d
The npm package carousel-3d receives a total of 3 weekly downloads. As such, carousel-3d popularity was classified as not popular.
We found that carousel-3d demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
Socket uncovered 11 malicious Go packages using obfuscated loaders to fetch and execute second-stage payloads via C2 domains.
Security News
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).