Skip to content

Instantly share code, notes, and snippets.

View lorddarq's full-sized avatar
💭
Looking for a new opportunity

Sorin Jurcut lorddarq

💭
Looking for a new opportunity
View GitHub Profile
@lorddarq
lorddarq / ContentView.swift
Created June 15, 2024 21:27 — forked from lostincode/ContentView.swift
MeshGradient Playground iOS 18
//
// ContentView.swift
// MeshGradientPlayground
//
// Created by Bill Richards on 6/14/24.
//
import SwiftUI
struct ContentView: View {
@bomberstudios
bomberstudios / sketch-plugins.md
Last active February 26, 2024 07:02
A list of Sketch plugins hosted at GitHub, in no particular order.
@lorddarq
lorddarq / scrollToElement.js
Created October 9, 2012 08:25
function to scroll to a specific element in the page
//replace #fromA with your button/control and #toB with the target to which you wanna scroll to.
$("#fromA").click(function() {
$("html, body").animate({ scrollTop: $("#toB").offset().top }, 1500);
console.log('executed scrollToElement');
return true;
});
@JosephSilber
JosephSilber / jquery.scrollto.js
Created October 7, 2012 16:22
jQuery plugin to scroll to an element on the page
// jQuery plugin to scroll to an element on the page
// Usage: $('#someElement').scrollTo();
// or: $('#someElement').scrollTo(750);
(function($)
{
var $window = $(window),
$document = $(document),
$documentWrapper = $('body, html');